diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d753a9b..c894f0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,11 +5,17 @@ on: branches: [main] pull_request: +permissions: + contents: read + jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + timeout-minutes: 10 strategy: + fail-fast: false matrix: + os: [ubuntu-latest, windows-latest] node: [22, 24] steps: - uses: actions/checkout@v4 @@ -17,6 +23,14 @@ jobs: with: node-version: ${{ matrix.node }} cache: npm + - uses: actions/setup-python@v5 + with: + python-version: '3.13' - run: npm ci - - run: npx playwright install --with-deps --only-shell chromium + - name: Install Chromium and Linux dependencies + if: runner.os == 'Linux' + run: npx playwright install --with-deps --only-shell chromium + - name: Install Chromium on Windows + if: runner.os == 'Windows' + run: npx playwright install --only-shell chromium - run: npm test