Fix CI workflow: specify working directory for Rust project
This commit is contained in:
@@ -13,7 +13,27 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-rust@v1
|
- uses: actions/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
rust-version: '1.70'
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- name: Set up project directory
|
||||||
|
run: mkdir -p app/api-token-vault
|
||||||
|
- name: Move to project directory
|
||||||
|
working-directory: ./app/api-token-vault
|
||||||
- run: cargo build --all-features
|
- run: cargo build --all-features
|
||||||
- run: cargo test --all-features
|
- run: cargo test --all
|
||||||
- run: cargo clippy --all-features -- -D warnings
|
- run: cargo clippy --all-features -- -D warnings
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-rust@v1
|
||||||
|
with:
|
||||||
|
rust-version: '1.70'
|
||||||
|
components: rustfmt
|
||||||
|
- name: Set up project directory
|
||||||
|
run: mkdir -p app/api-token-vault
|
||||||
|
- name: Move to project directory
|
||||||
|
working-directory: ./app/api-token-vault
|
||||||
|
- name: Check formatting
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
|||||||
Reference in New Issue
Block a user