-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (45 loc) · 1.13 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
51
52
53
54
55
56
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install tarpaulin
uses: actions-rs/[email protected]
with:
crate: cargo-tarpaulin
version: 0.19.1
use-tool-cache: true
- name: Build
run: cargo build
- name: Run tests with coverage
working-directory: ./entab
run: cargo +nightly tarpaulin --all --timeout 600 --out Xml -- --test-threads 1
- name: Upload to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
misc_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run no_std tests
working-directory: ./entab
run: cargo test --no-default-features