Skip to content

Commit

Permalink
Move typos to separate CI workflow (#1234)
Browse files Browse the repository at this point in the history
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
sveitser authored Mar 13, 2024
1 parent 57d8990 commit f47a2bc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


27 changes: 27 additions & 0 deletions .github/workflows/typos.yml
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]

0 comments on commit f47a2bc

Please sign in to comment.