Skip to content

Commit

Permalink
test(ci): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Aug 6, 2024
1 parent ffd1235 commit 47f32fb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]

name: Test

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
run: cargo +nightly fmt -- --check

- name: Run cargo clippy
run: cargo clippy -- -D warnings

- name: Run cargo test
run: cargo test

0 comments on commit 47f32fb

Please sign in to comment.