2024-10-07 08:34:05 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 18 * * FRI"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
2024-11-20 20:13:28 +00:00
|
|
|
with:
|
|
|
|
cache: false
|
2024-10-07 08:34:05 +00:00
|
|
|
- run: cargo check
|
|
|
|
|
|
|
|
test:
|
|
|
|
name: Test Suite
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
2024-11-20 20:16:20 +00:00
|
|
|
with:
|
|
|
|
cache: false
|
2024-10-07 08:34:05 +00:00
|
|
|
- run: cargo test
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
2024-11-20 20:16:20 +00:00
|
|
|
with:
|
|
|
|
cache: false
|
2024-10-07 08:34:05 +00:00
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- run: cargo fmt --all -- --check
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
2024-11-20 20:16:20 +00:00
|
|
|
with:
|
|
|
|
cache: false
|
2024-10-07 08:34:05 +00:00
|
|
|
- run: rustup component add clippy
|
|
|
|
- run: cargo clippy -- -D warnings
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
2024-11-20 20:16:20 +00:00
|
|
|
with:
|
|
|
|
cache: false
|
2024-10-07 08:34:05 +00:00
|
|
|
- run: cargo build
|