volcano.sh/volcano@v1.9.0/.github/workflows/code_verify.yaml (about) 1 name: Code Verify 2 3 on: 4 push: 5 branches: 6 - master 7 tags: 8 pull_request: 9 10 jobs: 11 verify: 12 runs-on: ubuntu-22.04 13 name: Verify codes, generated files 14 timeout-minutes: 40 15 env: 16 GOPATH: /home/runner/work/${{ github.repository }} 17 steps: 18 - name: Install Go 19 uses: actions/setup-go@v4 20 with: 21 go-version: 1.21.x 22 23 - name: Checkout code 24 uses: actions/checkout@v3 25 with: 26 fetch-depth: 0 27 path: ./src/github.com/${{ github.repository }} 28 29 - uses: actions/cache@v2 30 with: 31 path: ~/go/pkg/mod 32 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 33 34 - name: Run verify test 35 run: | 36 make lint 37 make verify 38 make TAG=v1.9.0 generate-yaml 39 make verify-generated-yaml 40 make unit-test 41 working-directory: ./src/github.com/${{ github.repository }}