Skip to content

Commit 8028e50

Browse files
committed
Add github test for windows using wine
This will only run the unit tests, not any integration tests. For that, a real Windows machine (with Hyper-V) is needed... Signed-off-by: Anders F Björklund <[email protected]>
1 parent 9d67d8c commit 8028e50

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,27 @@ jobs:
5151
- name: Uninstall
5252
run: sudo make uninstall
5353

54+
cross-windows:
55+
name: "Windows tests (cross)"
56+
runs-on: ubuntu-20.04
57+
timeout-minutes: 30
58+
steps:
59+
- uses: actions/setup-go@v3
60+
with:
61+
go-version: 1.18.x
62+
- uses: actions/checkout@v3
63+
with:
64+
fetch-depth: 1
65+
- name: Install wine
66+
run: |
67+
sudo apt-get update
68+
sudo apt-get install -y wine-binfmt wine64
69+
sudo apt-get remove -y mono-runtime || true
70+
- name: Unit tests
71+
run: GOOS=windows GOARCH=amd64 go test -v ./...
72+
- name: Make
73+
run: make GOOS=windows GOARCH=amd64
74+
5475
integration:
5576
name: Integration tests
5677
runs-on: macos-11

0 commit comments

Comments
 (0)