Skip to content

Commit

Permalink
ci: swap to cargo fmt nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Oct 26, 2024
1 parent 5d2b66f commit 085d0c1
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 28 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/demo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: ./examples/demo
- name: Run cargo clippy
run: cargo clippy -- -W clippy::nursery -W clippy::pedantic -W rust-2018-idioms -W rust-2021-compatibility
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/loco-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: ./loco-cli
- name: Run cargo clippy
run: cargo clippy --all-features -- -D warnings -W clippy::pedantic -W clippy::nursery -W rust-2018-idioms
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/loco-gen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/loco-rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/starter-lightweight-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: ./starters/lightweight-service
- name: Run cargo clippy
run: cargo clippy -- -W clippy::nursery -W clippy::pedantic -W rust-2018-idioms -W rust-2021-compatibility
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/starter-rest-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
working-directory: ./starters/rest-api
- name: Run cargo clippy
run: cargo clippy -- -W clippy::nursery -W clippy::pedantic -W rust-2018-idioms -W rust-2021-compatibility
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: ./starters/rest-api

test:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/starter-saas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
working-directory: ./starters/saas
- name: Run cargo clippy
run: cargo clippy -- -W clippy::nursery -W clippy::pedantic -W rust-2018-idioms -W rust-2021-compatibility
Expand Down
2 changes: 1 addition & 1 deletion starters/lightweight-service/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down
2 changes: 1 addition & 1 deletion starters/rest-api/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down
2 changes: 1 addition & 1 deletion starters/saas/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
toolchain: nightly
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 085d0c1

Please sign in to comment.