Skip to content

ci: specify working directory #3

ci: specify working directory

ci: specify working directory #3

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
working-directory: ./ci
uses: actions/cache@v3

Check failure on line 20 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / 🎳 Run Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 20, Col: 9): Unexpected value 'uses' .github/workflows/test.yml (Line: 21, Col: 9): Unexpected value 'with'
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