This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 371
ci: add quick-check with rustfmt #615
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fb01916
ci: add quick-check with clippy and rustfmt
chevdor 46f9e2e
chore: rustfmt round
chevdor 3e805d9
chore: set the same rustfmt config than substrate
chevdor 6c47890
chore: fix formatting
chevdor c1a8f37
cI: remove clippy
chevdor a97b7ee
ci: switch to nightly for the checks
chevdor 61a862d
ci: fix toolchains and naming
chevdor 00dec81
ci: Limit the check to formatting
chevdor 7e746fc
chore: fix formatting
chevdor eb431ae
Update .rustfmt.toml
bkchr 707300a
Update .rustfmt.toml
bkchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,40 @@ | ||
| name: Quick check Formatting | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "*" | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
|
|
||
| jobs: | ||
| quick_check: | ||
| strategy: | ||
| matrix: | ||
| os: ["ubuntu-latest"] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Install Rust nightly toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: nightly | ||
| override: true | ||
| components: clippy, rustfmt | ||
|
|
||
| - name: Cache Dependencies & Build Outputs | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
|
||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Cargo fmt | ||
| uses: actions-rs/cargo@v1 | ||
| with: | ||
| command: fmt | ||
| args: --all -- --check |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,23 @@ | ||
| hard_tabs=true | ||
| merge_imports=true | ||
| # Basic | ||
| hard_tabs = true | ||
| max_width = 100 | ||
| use_small_heuristics = "Max" | ||
|
|
||
| # Imports | ||
| imports_granularity = "Crate" | ||
| reorder_imports = true | ||
|
|
||
| # Consistency | ||
| newline_style = "Unix" | ||
|
|
||
| # Misc | ||
| binop_separator = "Back" | ||
| chain_width = 80 | ||
| match_arm_blocks = false | ||
| match_arm_leading_pipes = "Preserve" | ||
| match_block_trailing_comma = true | ||
| reorder_impl_items = false | ||
| spaces_around_ranges = false | ||
| trailing_comma = "Vertical" | ||
| trailing_semicolon = false | ||
| use_field_init_shorthand = true | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.