Skip to content

Commit 1f37956

Browse files
committed
ci: running golangci-lint on windows
In addition to the existing linux run, and also explicitely build for amd64 and arm64. Using GOOS and GOARCH 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 8cb534e commit 1f37956

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/static-checks.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
test -z "$(cat $outfile)"
6161
6262
golangci-lint:
63+
strategy:
64+
matrix:
65+
os: [linux, windows]
66+
arch: [amd64, arm64]
67+
fail-fast: false
6368
runs-on: ubuntu-latest
6469
steps:
6570
- name: Checkout
@@ -75,6 +80,9 @@ jobs:
7580

7681
- name: Run golangci-lint
7782
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
83+
env:
84+
GOOS: ${{ matrix.os }}
85+
GOARCH: ${{ matrix.arch }}
7886
with:
7987
# renovate: datasource=docker depName=docker.io/golangci/golangci-lint
8088
version: v2.1.2

0 commit comments

Comments
 (0)