2023-12-01 17:26:01 +01:00
|
|
|
name: "ci"
|
|
|
|
|
|
|
|
on:
|
2023-12-08 18:56:07 +01:00
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["main"]
|
2023-12-01 17:26:01 +01:00
|
|
|
|
|
|
|
env:
|
2023-12-08 18:56:07 +01:00
|
|
|
CARGO_TERM_COLOR: "always"
|
2023-12-01 17:26:01 +01:00
|
|
|
|
|
|
|
jobs:
|
2023-12-08 18:56:07 +01:00
|
|
|
ci:
|
|
|
|
runs-on: "ubuntu-latest"
|
2023-12-01 17:26:01 +01:00
|
|
|
|
2023-12-08 18:56:07 +01:00
|
|
|
steps:
|
|
|
|
- uses: "actions/checkout@v4"
|
|
|
|
- uses: "dtolnay/rust-toolchain@stable"
|
|
|
|
with:
|
|
|
|
components: "clippy, rustfmt"
|
|
|
|
- run: "rustc --version"
|
2023-12-01 17:26:01 +01:00
|
|
|
|
2023-12-08 18:56:07 +01:00
|
|
|
- run: "cargo build --verbose"
|
|
|
|
- run: "cargo test --verbose"
|
|
|
|
- run: "cargo clippy --verbose -- -D warnings"
|
|
|
|
- run: "cargo fmt -- --check"
|