-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run rust formatting on all rust code and add check to CI (#334)
## Overview This PR adds a rust linter to the CI. ## Upstream Changes - [ ] To be upstreamed to OSS ## Issue We can not ignore generated files on the stable rust compiler: https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#ignore. I'm okay with running `cargo fmt --all` and just format everything.
- Loading branch information
1 parent
d975d6a
commit 7cf7643
Showing
2 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: fasttask tests | ||
|
||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Rust linting | ||
run: cargo fmt --all -- --check | ||
working-directory: fasttask/worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters