github.com/hernad/nomad@v1.6.112/.github/workflows/checks.yaml (about) 1 # Run 'make check' on paths ignored by test-core.yaml. 2 name: Run checks 3 on: 4 pull_request: 5 paths: 6 - 'demo/**' 7 - 'e2e/terraform/**' 8 - 'terraform/**' 9 - 'website/**' 10 push: 11 branches: 12 - 'main' 13 - 'release/**' 14 paths: 15 - 'demo/**' 16 - 'e2e/terraform/**' 17 - 'terraform/**' 18 - 'website/**' 19 workflow_call: 20 21 jobs: 22 checks: 23 # largest available self-hosted disk for extra iops because linting is io-intensive 24 runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux", "disk_gb=255"]') || 'ubuntu-22.04' }} 25 timeout-minutes: 15 26 steps: 27 - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 28 with: 29 fetch-depth: 0 # needs tags for checkproto 30 - uses: ./.github/actions/vault-secrets 31 with: 32 paths: |- 33 kv/data/github/hashicorp/nomad-enterprise/gha ELEVATED_GITHUB_TOKEN ; 34 - name: Git config token 35 if: endsWith(github.repository, '-enterprise') 36 run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com' 37 - uses: hashicorp/setup-golang@v1 38 - name: Run make check 39 run: | 40 make missing 41 make bootstrap 42 make check 43 permissions: 44 contents: read 45 id-token: write