27 lines
646 B
YAML
27 lines
646 B
YAML
name: Test
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: xd009642/tarpaulin
|
|
# https://github.com/xd009642/tarpaulin#github-actions
|
|
options: --security-opt seccomp=unconfined
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 1.76.0
|
|
- name: Run tests (with coverage)
|
|
run: make test-cover
|
|
- name: Upload tests coverage
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
fail_ci_if_error: true
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|