-
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (35 loc) · 795 Bytes
/
CI.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
name: CI
on:
push:
branches:
- main
tags-ignore:
- "**"
pull_request:
branches:
- main
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- run: cargo test
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8.14.1
run_install: true
- name: Add Rust target
run: rustup target add wasm32-unknown-unknown
- run: pnpm build
- run: pnpm test