Skip to content

Commit

Permalink
ci: lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
hms5232 committed Sep 8, 2024
1 parent 9955cd4 commit 3339901
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test.yml
on:
- push
- pull_request

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
run: cargo fmt --all -- --check

unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --verbose

0 comments on commit 3339901

Please sign in to comment.