status check workflow

This commit was merged in pull request #5.
This commit is contained in:
2025-10-04 19:47:17 -05:00
committed by Jason Ross
parent 053e6781ca
commit 8549064c5b
+44
View File
@@ -0,0 +1,44 @@
name: Status Checks
on:
pull_request:
branches:
- main
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v3
with:
path: rewrite/target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
working-directory: ./rewrite
run: cargo test --verbose