Skip to content

Commit 7a94476

Browse files
committed
WIP: Add a windows test build
1 parent b744224 commit 7a94476

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,33 @@ jobs:
4848
path: dist/*
4949
if-no-files-found: error
5050

51+
# We build on Windows too, purely to check the build process is cross-compatible for contributors
52+
test-windows-build:
53+
name: Build & test on Windows
54+
runs-on: windows-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 100
59+
60+
# Install Node
61+
- uses: actions/setup-node@v4
62+
with:
63+
node-version: 20.8.0
64+
cache: 'npm'
65+
66+
# Install & build & test:
67+
- run: npm ci
68+
69+
- run: npm run test:unit
70+
71+
# Build & run normal integration tests:
72+
- name: Build & test
73+
run: npm run test:integration
74+
if: github.ref != 'refs/heads/main'
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # To pull server without rate limit issues in CI
77+
5178
publish-netlify:
5279
name: Deploy ${{ (github.ref == 'refs/heads/main' && 'to Netlify production') || 'Netlify preview' }}
5380
if: github.event_name == 'push'

0 commit comments

Comments
 (0)