- Add Swatinem/rust-cache@v2 to speed up CI builds - Change branch trigger from 'main' to 'master' to match Gitea repo
24 lines
502 B
YAML
24 lines
502 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- run: cargo fmt --check
|
|
- run: cargo clippy --all-features --all-targets -- -D warnings
|
|
- run: cargo test --all-features
|
|
- run: cargo doc --no-deps --all-features
|