Skip to content

Commit

Permalink
ci: update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Feb 26, 2024
1 parent 5f05d4f commit 099782f
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 099782f

Please sign in to comment.