Skip to content

Commit

Permalink
ci: swap cargo fmt and clippy to nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Nov 27, 2024
1 parent 34e7121 commit c54aa4b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/demo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/loco-gen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/loco-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/loco-rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
Expand Down
7 changes: 3 additions & 4 deletions loco-new/base_template/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

permissions:
contents: read

services:
redis:
image: redis
Expand Down Expand Up @@ -99,4 +99,3 @@ jobs:
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

4 changes: 2 additions & 2 deletions starters/lightweight-service/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions starters/rest-api/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down
7 changes: 3 additions & 4 deletions starters/saas/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt
toolchain: nightly
components: clippy, rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

permissions:
contents: read

services:
redis:
image: redis
Expand Down Expand Up @@ -99,4 +99,3 @@ jobs:
env:
REDIS_URL: redis://localhost:${{job.services.redis.ports[6379]}}
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

0 comments on commit c54aa4b

Please sign in to comment.