Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: swap to cargo fmt nightly #884

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

3 changes: 2 additions & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ pub struct Job {
#[serde(default)]
pub shell: bool,
#[serde(rename = "schedule")]
#[rustfmt::skip]
/// The cron expression defining the job's schedule.
///
/// The format is as follows:
/// sec min hour day of month month day of week year
/// * * * * * * *
/// * * * * * * *
pub cron: String,
/// Tags for tagging the job.
pub tags: Option<Vec<String>>,
Expand Down
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

Loading