This commit is contained in:
Smaug123
2021-12-01 18:45:44 +00:00
parent 159bd312a5
commit f5d7d1d40a

30
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Build (release)
run: cargo build --verbose --release
- name: Run tests (release)
run: cargo test --verbose --release
- name: Clippy
run: cargo clippy -- -D warnings
- name: Format
run: cargo fmt --all -- --check