-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 1.08 KB
/
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
50
name: run
on:
push:
branches: [ master ]
pull_request:
branches:
- '**' # matches every branch
workflow_dispatch:
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout Sources
uses: actions/checkout@v2
- name: Clear up disk space
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get clean
- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-nextest
version: latest
- name: Install Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true
default: true
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Run tests
run: cargo nextest run