Skip to content

Commit fc16aea

Browse files
committed
ci: Run validation job on Linux, macOS, Windows
Signed-off-by: James Alseth <[email protected]>
1 parent fb9c88d commit fc16aea

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/pr.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,21 @@ jobs:
1919
ref: ${{ github.event.pull_request.head.sha }}
2020
fetch-depth: ${{ github.event.pull_request.commits }}
2121

22+
- name: setup go
23+
uses: actions/setup-go@v6
24+
with:
25+
go-version: "1.25.x"
26+
cache: false
27+
2228
- name: validate conventional commit prefix
2329
working-directory: scripts
2430
run: ./validate-conventional-commit-prefix.sh
2531

32+
- name: golangci-lint
33+
uses: golangci/golangci-lint-action@v8
34+
with:
35+
args: --timeout=5m --color=always --max-same-issues=0 --max-issues-per-linter=0
36+
2637
- name: setup regal
2738
uses: StyraInc/setup-regal@v1
2839
with:
@@ -46,7 +57,13 @@ jobs:
4657
--format github
4758
4859
validate:
49-
runs-on: ubuntu-latest
60+
strategy:
61+
matrix:
62+
os:
63+
- 'ubuntu-latest'
64+
- 'macos-latest'
65+
- 'windows-latest'
66+
runs-on: ${{ matrix.os }}
5067
steps:
5168
- name: checkout source
5269
uses: actions/checkout@v5
@@ -57,11 +74,6 @@ jobs:
5774
go-version: "1.25.x"
5875
cache: false
5976

60-
- name: golangci-lint
61-
uses: golangci/golangci-lint-action@v8
62-
with:
63-
args: --timeout=5m --color=always --max-same-issues=0 --max-issues-per-linter=0
64-
6577
- name: build
6678
run: make build
6779

0 commit comments

Comments
 (0)