-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.15 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
name: Tests
on: [push, pull_request]
jobs:
tests-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install deps [Linux]
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: stable
- name: Run tests
run: cargo test --all
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install deps
run: sudo apt-get -qy update && sudo apt-get install -y libssl-dev libssl1.1
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: stable
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
env:
RUSTFLAGS: -C target-cpu=native
with:
version: "0.20.0"
args: " --exclude-files target* --all --out Lcov"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info