Skip to content

Commit

Permalink
checkout on each job
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjj27 committed Jan 15, 2021
1 parent d05bff1 commit a9cfe94
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,16 @@ jobs:
command: run
args: --example default

wasm-prepare:
name: prepare wasm-pack environment
wasm-browser-test:
name: test wasm support for browser
runs-on: ubuntu-latest
needs: wasm-prepare
strategy:
matrix:
browser:
- firefox
- chrome
- safari
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -127,17 +134,6 @@ jobs:
version: latest
use-tool-cache: true

wasm-browser-test:
name: test wasm support for browser
runs-on: ubuntu-latest
needs: wasm-prepare
strategy:
matrix:
browser:
- firefox
- chrome
- safari
steps:
- name: test on browser
run: wasm-pack test --headless --${{ matrix.browser }} -- --test web

Expand All @@ -146,5 +142,15 @@ jobs:
runs-on: ubuntu-latest
needs: wasm-prepare
steps:
- name: test on browser
run: wasm-pack test --node -- --test web
- name: Checkout sources
uses: actions/checkout@v2

- name: Install wasm-pack
uses: actions-rs/install@v0.1
with:
crate: wasm-pack
version: latest
use-tool-cache: true

- name: test on node
run: wasm-pack test --node -- --test node

0 comments on commit a9cfe94

Please sign in to comment.