Skip to content

Commit

Permalink
ci: Use nightly rustfmt to check bridge formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Mar 18, 2024
1 parent f0bfc7c commit 0819074
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/bridge-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ env:
RUST_BACKTRACE: 1

jobs:
check-fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: rustfmt
run: cargo fmt -- --check
working-directory: bridge

test-versions:
name: Webhook Bridge CI
runs-on: ubuntu-latest
Expand All @@ -32,10 +46,12 @@ jobs:
rust: [stable, beta]
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt
components: clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: "bridge -> target"
Expand All @@ -45,10 +61,6 @@ jobs:
# include relevant information in the cache name
prefix-key: "bridge-${{ matrix.rust }}"

- name: rustfmt
run: cargo fmt -- --check
working-directory: bridge

- name: Install dependencies
# Packages should align with whatever is in the bridge/Dockerfile
run: |
Expand Down

0 comments on commit 0819074

Please sign in to comment.