From c8fdab64bc7720f51d5bedabe4adf38bf626ba0b Mon Sep 17 00:00:00 2001 From: lovesh Date: Thu, 7 Sep 2023 15:41:40 +0530 Subject: [PATCH] Remove repeated runs of headless browser tests Signed-off-by: lovesh --- .github/workflows/test.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 603d467..2f0c177 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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