-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 965 Bytes
/
test.yml
File metadata and controls
39 lines (33 loc) · 965 Bytes
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
name: Test
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: ["16", "14", "12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Set up Rust stable
shell: bash
run: |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable -y
source $HOME/.cargo/env
rustup component add clippy
rustup target add wasm32-unknown-unknown
cargo install wasm-pack
- name: Test Rust and build wasm
env:
PROJECT_NAME: audit-filter
RUST_BACKTRACE: full
shell: bash
run: |
cargo clippy -- -D warnings
cargo test --verbose
wasm-pack build --target nodejs