Skip to content

Commit

Permalink
ci(check): add test step
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Jun 10, 2024
1 parent 70942d8 commit 62f6ec8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ on:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

- name: Test
run: cargo test

clippy:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -44,4 +61,4 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Rustfmt
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check

0 comments on commit 62f6ec8

Please sign in to comment.