Skip to content

Commit 5cb881b

Browse files
authored
ci: add integration tests for windows and macOS (#950)
1 parent aed5633 commit 5cb881b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/golangci.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,27 @@ jobs:
4141
- name: Unit tests and coverage
4242
run: make cov
4343

44-
integartion-test:
44+
integration-test:
4545
needs: [coverage]
4646
name: Integration tests
47-
runs-on: ubuntu-latest
47+
runs-on: ${{ matrix.os }}
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
os: [ubuntu-latest, macos-latest, windows-latest]
4852
steps:
4953
- uses: actions/checkout@v4
5054
- uses: actions/setup-go@v5
5155
with:
5256
go-version-file: go.mod
5357

5458
- name: Integration tests
55-
run: make test-int-all
59+
shell: bash
60+
run: |
61+
os_name="$(go env GOOS)"
62+
if [[ "${os_name}" == "darwin" || "${os_name}" == "windows" ]]; then
63+
make "test-int-${os_name}-all"
64+
else
65+
# linux runs all tests;
66+
make test-int-all
67+
fi

0 commit comments

Comments
 (0)