File: coverage.yml

package info (click to toggle)
rust-log4rs 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 680 kB
  • sloc: sh: 13; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 792 bytes parent folder | download
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
---
name: coverage

on:
  push:
    branches:
    - main
    - devel
  pull_request:
    branches:
    - main
    - devel

jobs:
  test:
    # https://github.com/xd009642/tarpaulin#github-actions
    name: coverage
    runs-on: ubuntu-latest
    container:
        image: xd009642/tarpaulin:develop-nightly
        options: --security-opt seccomp=unconfined
    steps:
    - name: Checkout repository
      uses: actions/checkout@v4

    - name: Generate code coverage
      run: |
        cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
      env:
        USER: "test-user"

    - name: Upload to codecov.io
      uses: codecov/codecov-action@v5
      with:
        token: ${{ secrets.CODECOV_TOKEN }}
        verbose: true # optional (default = false)