Skip to content

ci: cache dep builds #4

ci: cache dep builds

ci: cache dep builds #4

Workflow file for this run

name: CI
on:
pull_request:
push:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
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