Bump actions/checkout from 4.1.7 to 4.2.0 #1577
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: Pull Request Checks | |
on: [pull_request] | |
jobs: | |
go_mod: | |
name: go mod | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: [".", "tools", "v2/awsv1shim"] | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: ./go.mod | |
- name: go mod | |
working-directory: ${{ matrix.path }} | |
run: | | |
go mod tidy | |
git diff --exit-code --quiet -- go.mod go.sum || \ | |
(echo; echo "Unexpected difference in ${{ matrix.path }}/go.mod or ${{ matrix.path }}/go.sum files. Run 'go mod tidy' command or revert any go.mod/go.sum changes and commit."; exit 1) | |
go_work_sync: | |
name: go work sync | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: [".", "tools", "v2/awsv1shim"] | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: ./go.mod | |
- name: go work sync | |
run: | | |
go work sync | |
git diff --exit-code --quiet -- ${{ matrix.path }}/go.mod ${{ matrix.path }}/go.sum || \ | |
(echo; echo "Modules out of sync in ${{ matrix.path }}/. Run 'go mod sync' and 'cd ${{ matrix.path }} && go mod tidy' to bring them in sync."; exit 1) | |
go_test: | |
name: go test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: ./go.mod | |
- run: | | |
go test ./... | |
cd v2/awsv1shim && go test ./... | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: ./go.mod | |
- run: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint | |
- run: | | |
golangci-lint run ./... | |
cd v2/awsv1shim && golangci-lint run ./... | |
import-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: ./go.mod | |
- run: cd tools && go install github.com/pavius/impi/cmd/impi | |
# impi runs against the whole directory tree, ignoring modules | |
- run: impi --local . --scheme stdThirdPartyLocal ./... | |
semgrep: | |
runs-on: ubuntu-latest | |
container: | |
image: returntocorp/semgrep | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- run: semgrep --error --quiet --config .semgrep | |
env: | |
REWRITE_RULE_IDS: 0 | |
markdown-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0 | |
with: | |
config: ".markdownlint.yml" | |
args: "./README.md" |