Add Windows CI (#14065)

This PR changes the GitHub action workflow for V4 to start running all
unit tests and build on both Ubuntu (our current default) _and_ Windows.
This is to ensure we catch issues with paths and other Windows-specific
things sooner. It does, however, not replace testing on Windows.
This commit is contained in:
Philipp Spiess 2024-07-29 16:50:06 +02:00 • committed by GitHub
parent 87c9f32cbc
commit a2159e80f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 40 additions and 14 deletions

View file

@ -11,12 +11,14 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node-version: [20]
runner: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runner }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
@ -61,6 +63,8 @@ jobs:
- name: Lint
run: pnpm run lint
# Only lint on linux to avoind \r\n line ending errors
if: matrix.runner == 'ubuntu-latest'
- name: Test
run: pnpm run test