-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 833 Bytes
/
test.yml
File metadata and controls
38 lines (32 loc) · 833 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
name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
name: Cargo Test
runs-on: warp-ubuntu-2204-x64-16x
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install stable toolchain
run: |
rustup toolchain install stable --profile minimal
rustup target add wasm32-unknown-unknown
- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-test-
- name: Run tests
run: cargo test --workspace