Add timeout #383
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: main | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-22.04 # Use the version of Ubuntu supported by OSMA. | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install test tools | |
| run: make setup | |
| - name: Check auto-generated files | |
| run: make check-generate | |
| - name: Run test | |
| run: make test | |
| - name: Download iDRAC Tools | |
| run: make download-idractools | |
| - name: Build binaries | |
| run: make install GOBIN=`pwd`/docker | |
| - name: Build setup-hw image | |
| run: | | |
| docker build -t ghcr.io/cybozu-go/setup-hw:latest --target stage1 docker | |
| docker build -t ghcr.io/cybozu-go/setup-hw-secret:latest docker |