Static Code Analysis #8502
Workflow file for this run
This file contains 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: Static Code Analysis | |
on: | |
pull_request: { } | |
merge_group: | |
types: [checks_requested] | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
codegen: | |
name: Generated Code | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Prep Go Runner | |
uses: ./.github/actions/prep-go-runner | |
- name: Generate Code | |
run: | | |
./ci/check-generated-code.sh | |
static-analysis: | |
name: Lint Checks | |
runs-on: ubuntu-22.04 | |
# The linter is intended to run quickly. | |
# We define a 10-minute timeout on the linter config (.golangci.yaml) as well. | |
# If we exceed this timeout, we should consider only running the linter on changed files. | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Prep Go Runner | |
uses: ./.github/actions/prep-go-runner | |
- uses: golangci/golangci-lint-action@v6 | |
# `make analyze` runs the linter with similar arguments to what we use here. | |
# If this action fails, try running `make analyze` locally. | |
with: | |
version: v1.57.2 | |
args: --verbose --modules-download-mode=readonly --allow-parallel-runners | |
skip-cache: true | |
skip-save-cache: true | |
only-new-issues: false |