Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbugs committed Jan 18, 2024
1 parent 8971962 commit 488c71b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@${{ matrix.rust_os.rust }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_os.rust }}
components: rustfmt

# Newer dependency versions may not support rustc 1.70, so we use a Cargo.lock file for those
# builds along with `--locked`.
Expand All @@ -39,7 +42,7 @@ jobs:
echo "CARGO_LOCKED=--locked" >> $GITHUB_ENV
# FIXME: also run petstore integration tests
- name: Run tests
- name: Run default tests
run: cargo ${CARGO_LOCKED} test

clippy-fmt:
Expand All @@ -58,12 +61,14 @@ jobs:
- name: Use MSRV lockfile
run: cp Cargo-1.70.lock Cargo.lock

- name: Check fmt
run: cargo --locked fmt --all -- --check

- name: Run Clippy
run: cargo --locked clippy --all -- --deny warnings

# Cargo fmt doesn't run build.rs, so we need to run clippy first in order for
# openapi-lambda-test to pass (since it depends on the .openapi-lambda output directory).
- name: Check fmt
run: cargo --locked fmt --all -- --check

audit:
name: Cargo Audit (stable only)
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 488c71b

Please sign in to comment.