Skip to content

Commit

Permalink
Use matrix to reduce duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Nov 22, 2023
1 parent 36e7d87 commit aa69af6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-test-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
matrix:
plan:
- rust: "nightly-2023-04-01-x86_64-unknown-linux-gnu"
crates:
- rust-src
- rust-bins
- idiss
- mobile_wallet
- identity-provider-service

steps:
- name: Checkout
Expand All @@ -70,11 +76,7 @@ jobs:
run: |
rustup default ${{ matrix.plan.rust }}
rustup component add rustfmt
cargo fmt --manifest-path rust-src/Cargo.toml --all -- --check
cargo fmt --manifest-path rust-bins/Cargo.toml -- --check
cargo fmt --manifest-path idiss/Cargo.toml -- --check
cargo fmt --manifest-path mobile_wallet/Cargo.toml -- --check
cargo fmt --manifest-path identity-provider-service/Cargo.toml -- --check
cargo fmt --manifest-path ${{ matrix.crates }}/Cargo.toml --all -- --check
rustdoc:
runs-on: ubuntu-latest
Expand Down

0 comments on commit aa69af6

Please sign in to comment.