SRE-2916: Publish build attestation to GH. #70
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: PR | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: PR-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| invariants: | |
| name: Invariants | |
| runs-on: ubuntu-24-04-4-cores | |
| timeout-minutes: 1 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | |
| - name: Invariants | |
| shell: bash | |
| run: ./.github/scripts/invariants.sh | |
| - name: TruffleHog OSS | |
| uses: trufflesecurity/trufflehog@12164e38f0f1b673ab0594c7d94daf71b0be6823 # [email protected] | |
| bootstrap: | |
| name: Local E2E Tests | |
| runs-on: ubuntu-24-04-4-cores | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | |
| - name: Cache modules | |
| uses: ./.github/actions/cache/golang | |
| - uses: ./.github/actions/bootstrap | |
| rewind: | |
| name: Rewind Chain Tests | |
| runs-on: ubuntu-24-04-4-cores | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | |
| - name: Cache modules | |
| uses: ./.github/actions/cache/golang | |
| - uses: ./.github/actions/rewind | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-24-04-4-cores | |
| timeout-minutes: 35 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | |
| with: | |
| fetch-depth: 0 # We need the full history to get the base commit in order to compute the diff in golanci-lint | |
| - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # [email protected] | |
| with: | |
| go-version: 1.20.x | |
| - name: Cache modules | |
| uses: ./.github/actions/cache/golang | |
| - name: Cache linter | |
| uses: ./.github/actions/cache/golangci-lint | |
| - name: Debug golangci-lint cache | |
| run: | | |
| golangci-lint cache status | |
| - name: Lint | |
| shell: bash | |
| run: | | |
| golangci-lint run \ | |
| --new-from-rev=${{ github.event.pull_request.base.sha || 'HEAD~'}} \ | |
| --concurrency=4 \ | |
| --out-format=github-actions \ | |
| --config .golangci.yml \ | |
| ./... | |
| tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-24-04-4-cores | |
| timeout-minutes: 35 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected] | |
| - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # [email protected] | |
| with: | |
| go-version: 1.20.x | |
| - name: Cache modules | |
| uses: ./.github/actions/cache/golang | |
| - name: All Tests | |
| shell: bash | |
| run: | | |
| go run build/ci.go install | |
| go test $(go list ./... | grep -v 'go-ethereum/tests/immutable') -p 1 --parallel 4 -timeout=30m |