chore: Release four-cc version 0.4.0 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Build | |
run: cargo build --verbose | |
- name: Run no_std tests | |
run: cargo test --no-default-features | |
- name: Run std tests | |
run: cargo test --features std,serde,schemars --doc | |
coverage: | |
runs-on: ubuntu-22.04 | |
container: | |
image: xd009642/tarpaulin:0.27.3 | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate code coverage | |
run: cargo tarpaulin --features std,serde,schemars --doc --tests --timeout 120 --out lcov | |
- name: upload to Coveralls | |
uses: coverallsapp/github-action@v2.2.3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './lcov.info' |