Skip to content

Commit 6cb7322

Browse files
committed
ci: running golangci-lint on windows
In addition to the existing linux run. Using GOOS and GOARCH with golangci-lint can have some limitations, if we are running into troubles [^1], we can use native runners to run the linter as well. [^1]: golangci/golangci-lint-action#742 (comment) Signed-off-by: Mahe Tardy <[email protected]>
1 parent c9fda7b commit 6cb7322

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/static-checks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
test -z "$(cat $outfile)"
6161
6262
golangci-lint:
63+
strategy:
64+
matrix:
65+
os: [linux, windows]
66+
fail-fast: false
6367
runs-on: ubuntu-latest
6468
steps:
6569
- name: Checkout
@@ -75,6 +79,8 @@ jobs:
7579

7680
- name: Run golangci-lint
7781
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
82+
env:
83+
GOOS: ${{ matrix.os }}
7884
with:
7985
# renovate: datasource=docker depName=docker.io/golangci/golangci-lint
8086
version: v2.1.2

0 commit comments

Comments
 (0)