This commit is contained in:
aniketfuryrocks 2023-07-07 11:21:18 +05:30
parent 660a5f5b68
commit c9d00cf357
No known key found for this signature in database
GPG Key ID: 1B75EA596D89FF06
1 changed files with 31 additions and 0 deletions

31
.github/workflows/build_test.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Rust Build and Clippy Check
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Build and test
run: |
cargo build --all-targets
cargo test --all-targets
- name: Run Clippy
run: cargo clippy --all-targets -- -D warnings