From d4a10393596cd1aed373ad588bec24e2183cfb3b Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Thu, 24 Oct 2024 19:29:24 +0200 Subject: [PATCH] CI: run tests also on macOS and Windows --- .github/workflows/tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c08c5fe..848cbf54 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,8 +7,14 @@ on: jobs: tests: name: Tests - runs-on: ubuntu-latest - + strategy: + fail-fast: false # if tests for one version fail, continue with the rest + matrix: + # run on all main platforms to test platform-specific code, if present + # (e.g. webkit's WebCrypto API implementation is different in macOS vs Linux) + runner: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + runs-on: ${{ matrix.runner }} + steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -16,7 +22,8 @@ jobs: - name: Install dependencies run: npm ci - - run: npm run lint + - if: ${{ matrix.runner == 'ubuntu-latest' }} + run: npm run lint - run: npm run test-type-definitions - name: Install Chrome