-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup update stable && rustup default stable | ||
- run: cargo fmt --check | ||
- run: cargo clippy --lib --tests -- -D warnings | ||
- run: cargo doc --verbose | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup update stable && rustup default stable | ||
- run: cargo build --verbose | ||
- run: cargo test --verbose | ||
bench: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup update nightly && rustup default nightly && rustup component add clippy | ||
- run: cargo clippy --benches -- -D warnings | ||
- run: cargo bench --verbose | ||
coverage: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: xd009642/tarpaulin:develop-nightly | ||
options: --security-opt seccomp=unconfined | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cargo tarpaulin --lib --tests --doc --verbose --out xml | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: true |
This file was deleted.
Oops, something went wrong.
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