diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d18093b..843a8e8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,12 +6,9 @@ on: pull_request: jobs: - test: - name: Test + node: + name: Test (node) runs-on: ubuntu-latest - strategy: - matrix: - env: ['node', 'browser'] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -25,4 +22,22 @@ jobs: - name: Install dependencies run: yarn - run: ./dev/docker-compose up -d - - run: yarn test:${{ matrix.env }} + - run: yarn test:node + + browser: + name: Test (happy-dom) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + env: + SKIP_YARN_COREPACK_CHECK: '1' + - name: Enable corepack + run: corepack enable + - name: Install dependencies + run: yarn + - run: ./dev/docker-compose up -d + - run: yarn test:browser