Skip to content

Commit 54f96ed

Browse files
committed
ci: run unit tests on supported os runners
1 parent 24c1d2c commit 54f96ed

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ on:
1414
jobs:
1515
lint-test:
1616
name: Lints and Tests
17-
runs-on: macos-latest
17+
runs-on: ${{ matrix.os }}
1818
permissions:
1919
contents: read
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os:
24+
- macos-latest
25+
- ubuntu-latest
26+
- windows-latest
2027
steps:
2128
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2229
with:
@@ -27,15 +34,18 @@ jobs:
2734
with:
2835
go-version: "1.26.1"
2936
- name: Lint
37+
if: runner.os == 'Linux'
3038
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3139
with:
3240
version: latest
3341
args: --timeout=5m
3442
- name: Unit Tests
3543
run: make test
3644
- name: Install Tests
45+
if: runner.os != 'Windows'
3746
run: make test-install
3847
- name: Upload coverage to Codecov
48+
if: runner.os == 'Linux'
3949
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
4050
with:
4151
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)