name: coverage
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Update nightly
run: rustup update nightly
- name: Generate code coverage
run: cargo +nightly tarpaulin --timeout 120 --out lcov --output-dir ./coverage
- name: Upload to coveralls.io
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}