Skip to content

Commit

Permalink
chore: Fix golangci-lint-action CI
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed Aug 17, 2023
1 parent c59f015 commit c164cc8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@v3
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
make check-licenses test package-artifacts
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
YAKS_IMAGE_NAME: "kind-registry:5000/yaks"
YAKS_IMAGE_VERSION: "latest"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository == 'citrusframework/yaks'

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

jobs:
cleanup:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository == 'citrusframework/yaks'
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository == 'citrusframework/yaks'

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.repository == 'citrusframework/yaks'

steps:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ concurrency:

jobs:
validate:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -50,10 +50,9 @@ jobs:
with:
go-version: 1.21.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
env:
GOGC: 20
with:
version: v1.46.2
skip-go-installation: true
version: v1.53.3
args: --verbose --deadline 15m --config .golangci.yml
9 changes: 9 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ linters:
disable:
- containedctx
- cyclop
- depguard
- dupl
- exhaustive
- exhaustivestruct
Expand All @@ -51,12 +52,20 @@ linters:
- nestif
- nilnil
- nlreturn
- nolintlint
- nosnakecase
- paralleltest
- revive
- rowserrcheck
- scopelint
- structcheck
- sqlclosecheck
- tagalign
- tagliatelle
- tenv
- testpackage
- varnamelen
- wastedassign
- whitespace
- wrapcheck
- wsl

0 comments on commit c164cc8

Please sign in to comment.