aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-03-09 08:20:17 +0300
committerA Farzat <a@farzat.xyz>2026-03-09 08:20:17 +0300
commit904f91027cdfa91790da6bfd153627616ad512fb (patch)
tree9b2028e0d282b02b1bb1d707f22365c4703223e2 /.github/workflows
parent757c0ff90a2d6cc41c77c26050c50b1b9ceecbec (diff)
downloadoreilly-epub-904f91027cdfa91790da6bfd153627616ad512fb.tar.gz
oreilly-epub-904f91027cdfa91790da6bfd153627616ad512fb.zip
Add GitHub workflow job for tests
Though we do not have any tests yet, this will make sure they are checked once they are there.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a8978fd..36f29cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,3 +31,26 @@ jobs:
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
+
+ test:
+ needs: check
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Rust toolchain
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Cache cargo
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: rust-${{ hashFiles('Cargo.lock') }}
+
+ - name: Run tests
+ run: cargo test --all