-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Improve GitHub Action modularity (#18861)
- Closes: #19351 - Switch to using the official [typos GitHub Action](https://github.com/crate-ci/typos/blob/master/docs/github-action.md) - Move the typos check into `actions/check_style` - Move Squawk Postgres migration check out of `actions/check_style` file into ci.yml - `actions/check_style` can now be run on stateless/linux runners (previous required self-hosted MacOS runner) - ci.yml: Split old `style` into checks into those that can run statelessly (linux) and everything else into a new `migration` group which benefit from the full git checkout available on the MacOS runners. - ci.yml: Move `Check unused dependencies` from style to `linux_tests` - Add `if: github.repository_owner == 'zed-industries'` to all jobs so they won't try and run on GitHub forks.
- Loading branch information
1 parent
5334e48
commit 6af0df2
Showing
5 changed files
with
42 additions
and
39 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 |
---|---|---|
|
@@ -4,12 +4,11 @@ description: "Checks code formatting use cargo fmt" | |
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check for Typos with Typos-CLI | ||
uses: crate-ci/[email protected] | ||
with: | ||
config: ./typos.toml | ||
|
||
- name: cargo fmt | ||
shell: bash -euxo pipefail {0} | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Find modified migrations | ||
shell: bash -euxo pipefail {0} | ||
run: | | ||
export SQUAWK_GITHUB_TOKEN=${{ github.token }} | ||
. ./script/squawk |
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
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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
jobs: | ||
check_formatting: | ||
name: "Check formatting" | ||
if: github.repository_owner == 'zed-industries' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -29,5 +30,8 @@ jobs: | |
false | ||
} | ||
- name: Check spelling | ||
run: script/check-spelling docs/ | ||
- name: Check for Typos with Typos-CLI | ||
uses: crate-ci/[email protected] | ||
with: | ||
config: ./typos.toml | ||
files: ./docs/ |
This file was deleted.
Oops, something went wrong.