2024-08-08 16:51:21 +02:00
|
|
|
name: Rust CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
rust_ci:
|
|
|
|
name: Rust CI
|
|
|
|
runs-on: debian
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: https://codeberg.org/TheAwiteb/rust-action@v1.75
|
|
|
|
- name: Check MSRV
|
|
|
|
run: cargo +1.75 build
|
|
|
|
- name: Build the source code
|
|
|
|
run: cargo build
|
2024-08-09 23:01:45 +02:00
|
|
|
- name: Build examples
|
2024-08-12 22:44:21 +02:00
|
|
|
run: cargo build -F 'simple-generator' --example simple_login
|
2024-08-09 23:01:45 +02:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --tests --all-features
|
2024-08-08 16:51:21 +02:00
|
|
|
- name: Check the code format
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
- name: Run cargo-check
|
|
|
|
run: cargo check
|
|
|
|
- name: Run cargo-clippy
|
2024-08-09 23:01:45 +02:00
|
|
|
run: cargo clippy -- -D warnings
|