Create CI workflow

This commit is contained in:
Laurenz 2024-04-27 13:22:25 +02:00
parent 01b4d7f92a
commit bc82e576f3

25
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Rust
on:
# push:
# branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run Clippy lints
run: cargo clippy --all-targets --all-features
- name: Run format checks
run: cargo fmt --check