Skip to content

Commit

Permalink
build: rs-checks should format using nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 7, 2023
1 parent f5d593b commit 0a49287
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rs-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
lint:
name: Linting
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ]
runs-on: ["self-hosted", "linux", "x64", "ubuntu-platform"]
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
timeout-minutes: 15
steps:
Expand All @@ -29,7 +29,7 @@ jobs:

formatting:
name: Formatting
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ]
runs-on: ["self-hosted", "linux", "x64", "ubuntu-platform"]
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
steps:
- name: Check out repo
Expand All @@ -41,11 +41,11 @@ jobs:
components: rustfmt

- name: Check formatting
run: exit `cargo fmt --check --package=${{ inputs.package }} | wc -l`
run: exit `cargo +nightly fmt --check --package=${{ inputs.package }} | wc -l`

compile:
name: Compilation errors
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ]
runs-on: ["self-hosted", "linux", "x64", "ubuntu-platform"]
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
timeout-minutes: 15
steps:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
test:
name: Tests
runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ]
runs-on: ["self-hosted", "linux", "x64", "ubuntu-platform"]
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
timeout-minutes: 15
steps:
Expand Down

0 comments on commit 0a49287

Please sign in to comment.