ci: specify working directory #3
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: 🎳 Run Tests | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: 🫡 Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: 📌 Cache cargo registry | ||
working-directory: ./ci | ||
uses: actions/cache@v3 | ||
Check failure on line 20 in .github/workflows/test.yml GitHub Actions / 🎳 Run TestsInvalid workflow file
|
||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: 📌 Cache cargo build | ||
working-directory: ./ci | ||
uses: actions/cache@v3 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build- | ||
- name: 🎳 Run tests | ||
working-directory: ./ci | ||
run: cargo test --verbose |