From fc6dc52b726025ccabaabb7560de49e2da584823 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 4 Nov 2024 23:34:06 +0800 Subject: [PATCH] ci(clippy): install ast-grep via npm (#7119) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8481b76ee..1ca8e6825 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,10 +178,10 @@ jobs: save-cache: ${{ github.ref_name == 'main' }} cache-key: clippy components: clippy - tools: ast-grep - run: cargo lint -- -D warnings - 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