fix: misc cleanup #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
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 & | |
sleep 2 | |
curl -vf http://localhost:3000 > /dev/null | |
curl -vf http://localhost:3000/p/semgrep > /dev/null | |
curl -vf http://localhost:3000/feed.xml > /dev/null |