Skip to content

Commit

Permalink
refactor: update rustfmt job in Rust workflow
Browse files Browse the repository at this point in the history
* See `.github/workflows/rust.yml`
  • Loading branch information
kodemartin committed May 28, 2024
1 parent e3df5e3 commit ebde051
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
- 'testnet'
- 'mainnet'
- 'releases/sui-*-release'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -330,12 +330,10 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- run: rustup component add rustfmt
- name: rustfmt
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # pin@v1.0.3
with:
command: fmt
args: --check
- name: Install latest nightly
run: rustup toolchain install nightly-2023-11-20 --component rustfmt # Pin nightly version
- name: Check Rust formatting
run: cargo +nightly-2023-11-20 fmt --check

cargo-deny:
name: cargo-deny (advisories, licenses, bans, ...)
Expand Down

0 comments on commit ebde051

Please sign in to comment.