Use working-directory and path options in CI workflow
Some checks failed
CI / test (push) Failing after 2s
Some checks failed
CI / test (push) Failing after 2s
This commit is contained in:
@@ -4,9 +4,14 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: api-token-vault
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: api-token-vault
|
||||||
|
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
uses: actions/setup-rust@v4
|
uses: actions/setup-rust@v4
|
||||||
@@ -14,10 +19,13 @@ jobs:
|
|||||||
rust-version: stable
|
rust-version: stable
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose 2>&1
|
run: |
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
|
cargo build --verbose
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose 2>&1
|
run: cargo test --verbose
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt -- --check 2>&1
|
run: cargo fmt -- --check
|
||||||
|
|||||||
Reference in New Issue
Block a user