-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ast-grep GitHub action and pin versions
This uses the official ast-grep GitHub Action [0] instead of installing it from npm in the clippy job. Thanks for the suggestion from @HerringtonDarkholme! [0] https://github.com/ast-grep/action [1] #5637 (comment)
- Loading branch information
1 parent
d4fd4fb
commit 0210cde
Showing
2 changed files
with
14 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 |
---|---|---|
|
@@ -314,6 +314,18 @@ jobs: | |
run: | | ||
cargo groups check turborepo-libraries --features rustls-tls | ||
# From https://github.com/ast-grep/action/tree/v1.4/?tab=readme-ov-file#basic | ||
ast-grep-lint: | ||
runs-on: ubuntu-latest | ||
name: Run ast-grep lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: ast-grep lint step | ||
uses: ast-grep/[email protected] | ||
with: | ||
version: 0.22.5 | ||
|
||
rust_clippy: | ||
needs: [rust_check] | ||
name: Turborepo rust clippy | ||
|
@@ -335,10 +347,6 @@ jobs: | |
run: | | ||
cargo groups clippy turborepo-libraries --features rustls-tls -- --deny clippy::all | ||
- name: Run ast-grep lints | ||
run: | | ||
npx --package @ast-grep/cli -- ast-grep scan $(cargo groups list turborepo-libraries | awk '{ print $2 }' | tr '\n' ' ') | ||
rust_test: | ||
needs: [rust_check] | ||
strategy: | ||
|
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