Skip to content

Commit

Permalink
ci: download ast-grep from github (#8728)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Jan 26, 2025
1 parent e9fb5fe commit ad87fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ jobs:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: clippy
components: clippy
tools: ast-grep
- run: cargo lint -- -D warnings
- run: cargo lint --profile dev-no-debug-assertions -- -D warnings
# Waiting for https://github.com/rust-lang/rust-clippy/pull/13435
- name: Check Char and Byte Offset
run: |
npm i @ast-grep/cli -g
output=$(sg -p '$A.chars().enumerate()' -r '$A.char_indices()' -l rs)
echo "Output: $output"
if [ -n "$output" ]; then
Expand Down

0 comments on commit ad87fc7

Please sign in to comment.