mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2025-05-20 01:18:52 +00:00
chore(ci): add check action
This commit is contained in:
parent
193600e887
commit
f7a1e4b666
1 changed files with 24 additions and 0 deletions
24
.github/workflows/check.yml
vendored
Normal file
24
.github/workflows/check.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
# https://github.com/Mozilla-Actions/sccache-action#rust-code
|
||||||
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: check
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
|
# - run: cargo fmt -- --check
|
||||||
|
- run: cargo clippy --all-targets --all-features
|
||||||
|
- run: cargo test --all-features --no-fail-fast
|
||||||
|
- run: cargo run --example local_federation axum
|
Loading…
Reference in a new issue