Skip to content

lint

lint #23

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
# RUSTFLAGS: "-Dwarnings" # todo fix deprecation warning
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all-features
- name: Lint
run: cargo clippy --all-targets --all-features
coverage:
needs: build_and_test
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Generate code coverage
run: cargo +nightly tarpaulin --all-features --workspace --timeout 120 --out xml
- name: Upload to coveralls.io
uses: coverallsapp/github-action@v2