Skip to content

Commit

Permalink
add rustfmt suggestions for pr-review,
Browse files Browse the repository at this point in the history
other jobs requires format check
  • Loading branch information
boozook committed Sep 11, 2023
1 parent bc6205a commit 4aeef19
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
defaults:
run:
shell: bash

needs: format
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -32,7 +32,7 @@ jobs:
- latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache
uses: Swatinem/rust-cache@v1

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
defaults:
run:
shell: bash

needs: format
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -113,7 +113,7 @@ jobs:
- latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache
uses: Swatinem/rust-cache@v1

Expand Down Expand Up @@ -170,6 +170,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check
if: ${{ github.event_name == 'pull_request' }}
uses: clechasseur/rs-fmt-check@v2
with:
toolchain: nightly

- name: Check
if: ${{ github.event_name != 'pull_request' }}
run: cargo fmt -- --check

0 comments on commit 4aeef19

Please sign in to comment.