34 lines
637 B
YAML
34 lines
637 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
|
|
- name: Build project
|
|
run: cargo build --all-features
|
|
|
|
- name: Run tests
|
|
run: cargo test --all-features
|
|
|
|
- name: Run clippy
|
|
run: cargo clippy --all-features -- -D warnings
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --check
|