-
Notifications
You must be signed in to change notification settings - Fork 85
49 lines (39 loc) · 1.3 KB
/
ci-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
# Used when testing with `wasm-pack test`
target: wasm32-unknown-unknown
- name: Rust Version Info
run: rustc --version && cargo --version && echo $CARGO_HOME
- name: Install wasm-pack
run: >
curl -L https://github.com/rustwasm/wasm-pack/releases/download/v0.10.0/wasm-pack-v0.10.0-x86_64-unknown-linux-musl.tar.gz
| tar --strip-components=1 --wildcards -xzf - "*/wasm-pack"
&& chmod +x wasm-pack
&& mv wasm-pack $HOME/.cargo/bin/
- name: Browser versions
run: wasm-pack --version && firefox --version
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run all tests
run: ./test.sh
# NOTE: We can start running the full test suite on stable after https://github.com/rust-lang/rust/issues/54725
- name: Check that Stable can compile
run: cargo +stable check --all