2024-12-20 23:43:04 +01:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
name: Continuous integration
|
2024-12-20 23:28:35 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-12-20 23:43:04 +01:00
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- run: cargo check
|
|
|
|
|
2024-12-20 23:28:35 +01:00
|
|
|
test:
|
2024-12-20 23:43:04 +01:00
|
|
|
name: Test Suite
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- run: cargo test
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- 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
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- run: cargo clippy -- -D warnings
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: build
|
2024-12-20 23:28:35 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-12-20 23:43:04 +01:00
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- run: cargo build
|