-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move typos to separate CI workflow (#1234)
The lint workflow is required to pass to merge. I think we shouldn't block PRs on typos, therefore moving this to a separate action.
- Loading branch information
Showing
2 changed files
with
27 additions
and
5 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 |
---|---|---|
|
@@ -30,13 +30,8 @@ jobs: | |
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
|
||
- name: typos-action | ||
uses: crate-ci/[email protected] | ||
|
||
- name: Format Check | ||
run: cargo fmt -- --check | ||
|
||
- name: Check | ||
run: cargo clippy --workspace --all-features --all-targets -- -D warnings | ||
|
||
|
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,27 @@ | ||
name: Typos | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
tags: | ||
# YYYYMMDD | ||
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*" | ||
pull_request: | ||
branches: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
typos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
|
||
- name: typos-action | ||
uses: crate-ci/[email protected] |