Skip to content

Commit

Permalink
ci: cache dep builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jun 1, 2024
1 parent b2b9d95 commit 857d166
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI

on:
pull_request:
push:

env:
Expand All @@ -23,11 +22,18 @@ jobs:
cargo-${{ hashFiles('**/Cargo.toml') }}
cargo-
- name: Cargo Target Cache
uses: actions/cache@v3
with:
path: target
key: cargo-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cargo-target-${{ hashFiles('**/Cargo.toml') }}
cargo-target-
- name: Run tests
run: |
cd ${GITHUB_WORKSPACE}
cargo build --verbose
cargo run &
curl -vf localhost:3000
curl -vf localhost:3000/p/semgrep

0 comments on commit 857d166

Please sign in to comment.