Skip to content

Commit

Permalink
Remove repeated runs of headless browser tests
Browse files Browse the repository at this point in the history
Signed-off-by: lovesh <lovesh.bond@gmail.com>
  • Loading branch information
lovesh committed Sep 7, 2023
1 parent 441f34a commit c8fdab6
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@ on:
pull_request: {}

jobs:
build_test:
name: Build test
headless_browser_test:
name: Run Rust tests on headless browser
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [16.x, 18.x]
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v1
- uses: jetli/wasm-pack-action@v0.3.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- run: yarn test:browser

js_test:
name: Run JS tests in NodeJS environment
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v1
Expand All @@ -25,4 +39,4 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn build:release
- run: yarn test
- run: yarn test:wasm

0 comments on commit c8fdab6

Please sign in to comment.