Skip to content

Commit cc7fbdc

Browse files
committed
fix ci
1 parent cb83f02 commit cc7fbdc

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/NodeCI.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ jobs:
6969
working-directory: ${{ env.project_root_path }}
7070
- name: Install ESLint ${{ matrix.eslint }}
7171
if: matrix.eslint != 9
72-
# Hack: Install `eslint-plugin-svelte` is necessary for `packages/eslint-plugin-svelte/tests/src/configs` tests.
73-
run: pnpm install -D eslint@${{ matrix.eslint }} eslint-plugin-svelte
74-
working-directory: ${{ env.project_root_path }}
72+
run: pnpm install -D -w eslint@${{ matrix.eslint }}
7573

7674
- name: Test
77-
run: pnpm run test
75+
run: pnpm test
7876
working-directory: ${{ env.project_root_path }}
7977

8078
test-for-svelte-v4:
@@ -108,9 +106,8 @@ jobs:
108106
working-directory: ${{ env.project_root_path }}
109107
- name: Install ESLint ${{ matrix.eslint }}
110108
run: |
111-
pnpm install -D eslint@${{ matrix.eslint }}
109+
pnpm install -D -w eslint@${{ matrix.eslint }}
112110
rm -rf node_modules
113-
working-directory: ${{ env.project_root_path }}
114111
- name: Install Packages
115112
run: pnpm install
116113
- name: Test
@@ -123,7 +120,7 @@ jobs:
123120
strategy:
124121
matrix:
125122
os: [ubuntu-latest]
126-
node: [16]
123+
node: [14]
127124
steps:
128125
- name: Checkout
129126
uses: actions/checkout@v4
@@ -137,8 +134,8 @@ jobs:
137134
run: |
138135
cd docs-svelte-kit
139136
pnpm rm @sveltejs/kit
140-
cd ../packages/eslint-plugin-svelte
141-
pnpm install -D svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
137+
cd ..
138+
pnpm install -D -w svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
142139
rm -rf packages/eslint-plugin-svelte/node_modules
143140
rm -rf docs-svelte-kit/node_modules
144141
rm -rf node_modules
@@ -165,9 +162,8 @@ jobs:
165162
node-version: ${{ matrix.node }}
166163
- name: Install typescript-eslint v5
167164
run: |
168-
pnpm install -D @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
165+
pnpm install -D -w @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
169166
rm -rf node_modules
170-
working-directory: ${{ env.project_root_path }}
171167
- name: Install Packages
172168
run: pnpm install
173169
- name: Test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"eslint-plugin-regexp": "^2.5.0",
3636
"eslint-plugin-yml": "^1.14.0",
3737
"npm-run-all2": "^6.2.0",
38-
"rimraf": "^5.0.7",
3938
"prettier": "^3.2.5",
4039
"prettier-plugin-svelte": "^3.2.3",
40+
"rimraf": "^5.0.7",
4141
"typescript": "~5.4.5",
4242
"typescript-eslint": "^7.9.0"
4343
},

0 commit comments

Comments
 (0)