Skip to content

Commit

Permalink
ci: Add rust-test workflow
Browse files Browse the repository at this point in the history
This runs tests and formats code.
  • Loading branch information
JonathonReinhart committed Dec 31, 2023
1 parent 48b69ef commit dc1c6e3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Rust Test

# Run this workflow whenever a PR is created or pushed to.
on:
pull_request:
types: [opened, synchronize]

jobs:
rust-test:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run tests
run: |
cd scubainit
cargo test
- name: Code format
run: |
cd scubainit
cargo fmt --check

0 comments on commit dc1c6e3

Please sign in to comment.