Skip to content

Commit

Permalink
build(ci): add setup-go to lint job
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Mar 1, 2022
1 parent 15708b3 commit 1f31d49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.17"
check-latest: true
- name: Run golangci-lint
uses: golangci/[email protected]
with:
Expand All @@ -37,14 +42,15 @@ jobs:
strategy:
matrix:
go:
- "^1.15"
- "^1.16"
- "^1.17"
- "1.15"
- "1.16"
- "1.17"
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Setup CycloneDX CLI
run: |
mkdir -p "$HOME/.local/bin"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: "1.17"
check-latest: true
- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v1
with:
Expand Down

0 comments on commit 1f31d49

Please sign in to comment.