Fix CI workflow: update actions/setup-rust to v4, use stable Rust, fix test command
This commit is contained in:
@@ -3,21 +3,32 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- 'api-token-vault/**'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- 'api-token-vault/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-rust@v1
|
||||
- uses: actions/setup-rust@v4
|
||||
with:
|
||||
rust-version: stable
|
||||
- run: cargo build --all-features
|
||||
- run: cargo test --all-features
|
||||
- run: cargo clippy --all-features -- -D warnings
|
||||
components: rustfmt, clippy
|
||||
- name: Build
|
||||
run: cargo build --all-features
|
||||
- name: Run tests
|
||||
run: cargo test
|
||||
- name: Clippy
|
||||
run: cargo clippy --all-features -- -D warnings
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-rust@v4
|
||||
with:
|
||||
rust-version: stable
|
||||
components: rustfmt
|
||||
- name: Check formatting
|
||||
run: cargo fmt -- --check
|
||||
|
||||
Reference in New Issue
Block a user