Skip to content

Commit

Permalink
ci: add cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjfhsjfh authored Feb 3, 2025
1 parent 5a57f10 commit 4a494ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Cargo Test

on:
push: {}
pull_request: {}

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Setup Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
rustup toolchain install nightly-2023-02-01
rustup default nightly-2023-02-01
- name: Cache and Test
uses: Swatinem/rust-cache@v2
run: |
cargo test

0 comments on commit 4a494ae

Please sign in to comment.