-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 922 Bytes
/
coverage.yml
File metadata and controls
41 lines (37 loc) · 922 Bytes
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: Coverage Badge
on:
push:
branches: [main]
paths:
- crates/**
- Cargo.toml
- Cargo.lock
- Dockerfile
pull_request:
paths:
- crates/**
- Cargo.toml
- Cargo.lock
- Dockerfile
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
code-coverage-publish-coveralls:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
# Install lcov if not already installed
sudo apt-get install -y lcov
- name: Create coverage info
run: |
# Run coverage test
cargo cov
- name: Upload to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.DOCKERHUB_TOKEN }}
path-to-lcov: lcov.info