Skip to content

Commit

Permalink
Bump golangci/golangci-lint-action from 2.5.2 to 3 (sigstore#1516)
Browse files Browse the repository at this point in the history
* Bump golangci/golangci-lint-action from 2.5.2 to 3

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2.5.2 to 3.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@5c56cd6...c675eb7)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* add required go setup

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
2 people authored and Adam Shamblin committed Mar 1, 2022
1 parent f2a587a commit 252557d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

permissions: read-all

env:
GO_VERSION: 1.17.x

jobs:
unit-tests:
name: Run unit tests
Expand Down Expand Up @@ -50,7 +53,7 @@ jobs:
${{ runner.os }}-go-
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 #v2.1.5
with:
go-version: '1.17.x'
go-version: ${{ env.GO_VERSION }}
- name: Run Go tests
run: go test ./...
- name: Run Go tests w/ `-race`
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
${{ runner.os }}-go-
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 #v2.1.5
with:
go-version: '1.17.x'
go-version: ${{ env.GO_VERSION }}
- uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675 #v0.4
- name: setup kind cluster
run: |
Expand All @@ -103,7 +106,7 @@ jobs:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 #v2.1.5
with:
go-version: '1.17.x'
go-version: ${{ env.GO_VERSION }}

# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed #v2.1.7
Expand All @@ -128,7 +131,7 @@ jobs:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: '1.17.x'
go-version: ${{ env.GO_VERSION }}
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: Check license headers
Expand All @@ -141,9 +144,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2.5.2
uses: golangci/golangci-lint-action@c675eb70db3aa26b496bc4e64da320480338d41b # v3
timeout-minutes: 5
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: latest
version: v1.44.2

0 comments on commit 252557d

Please sign in to comment.