Skip to content

ci: specify working directory #5

ci: specify working directory

ci: specify working directory #5

Workflow file for this run

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
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: 📌 Cache cargo build
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