mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
ci: download ast-grep from github (#8728)
This commit is contained in:
parent
e9fb5febdf
commit
ad87fc7a53
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -163,11 +163,12 @@ jobs:
|
||||||
save-cache: ${{ github.ref_name == 'main' }}
|
save-cache: ${{ github.ref_name == 'main' }}
|
||||||
cache-key: clippy
|
cache-key: clippy
|
||||||
components: clippy
|
components: clippy
|
||||||
|
tools: ast-grep
|
||||||
- run: cargo lint -- -D warnings
|
- run: cargo lint -- -D warnings
|
||||||
- run: cargo lint --profile dev-no-debug-assertions -- -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
|
- name: Check Char and Byte Offset
|
||||||
run: |
|
run: |
|
||||||
npm i @ast-grep/cli -g
|
|
||||||
output=$(sg -p '$A.chars().enumerate()' -r '$A.char_indices()' -l rs)
|
output=$(sg -p '$A.chars().enumerate()' -r '$A.char_indices()' -l rs)
|
||||||
echo "Output: $output"
|
echo "Output: $output"
|
||||||
if [ -n "$output" ]; then
|
if [ -n "$output" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue