-
Notifications
You must be signed in to change notification settings - Fork 19
33 lines (27 loc) · 904 Bytes
/
coverage.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
name: Tarpaulin
on: [push]
jobs:
check:
name: Tarpaulin on Linux - Latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install libxcb and libgtk
run: sudo apt-get update; sudo apt-get install --no-install-recommends libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev
if: runner.os == 'linux'
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: "0.15.0"
args: "--ignore-tests --out Lcov -- --test-threads 1"
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"