-
-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (28 loc) · 847 Bytes
/
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
name: testing
on:
push:
branches: [ main, trying, staging ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: test-bors
# runs-on: [self-hosted, linux, x64]
runs-on: [self-hosted, macOS, x64]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
RUSTFLAGS: -Zinstrument-coverage
LLVM_PROFILE_FILE: "webusb-%p-%m.profraw"
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --test-threads=1
- name: Generate coverage
run: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o ./lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info