Create CI workflow
This commit is contained in:
parent
01b4d7f92a
commit
bc82e576f3
1 changed files with 25 additions and 0 deletions
25
.github/workflows/rust.yml
vendored
Normal file
25
.github/workflows/rust.yml
vendored
Normal 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
|
||||
Loading…
Reference in a new issue