From 40d6865eda7eae3d8d153cf771400d32e8539c55 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Sat, 4 Oct 2025 19:45:26 -0500 Subject: [PATCH] status check workflow --- .github/workflows/status-checks.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/status-checks.yml diff --git a/.github/workflows/status-checks.yml b/.github/workflows/status-checks.yml new file mode 100644 index 0000000..7958cb3 --- /dev/null +++ b/.github/workflows/status-checks.yml @@ -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 -- 2.47.3