Skip to content

Commit 1f3d251

Browse files
authored
Refactor test.yml for better readability and updates
Updated GitHub Actions workflow for testing with improved formatting and updated Node.js version.
1 parent 827adee commit 1f3d251

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: Test
22

33
on:
44
push:
5-
branches:
6-
main
5+
branches: [main]
76
pull_request:
8-
branches:
9-
main
7+
branches: [main]
108

119
jobs:
1210
test:
@@ -17,21 +15,22 @@ jobs:
1715
fail-fast: false
1816

1917
steps:
20-
- name: Checkout repo
18+
- name: 🧾 Checkout repo
2119
uses: actions/checkout@v5
2220

23-
- name: Setup Node.js
21+
- name: ⚙️ Setup Node.js
2422
uses: actions/setup-node@v5
2523
with:
26-
node-version: 24
24+
node-version: 22
25+
cache: 'npm'
2726

28-
- name: Install dependencies
27+
- name: 📦 Install dependencies
2928
run: |
30-
npm ci
3129
cd tests/${{ matrix.svelte-version }}
32-
npm install
30+
rm -rf node_modules package-lock.json
31+
npm install --no-fund --no-audit
3332
34-
- name: Run tests
33+
- name: 🧪 Run tests
3534
run: |
3635
cd tests/${{ matrix.svelte-version }}
37-
npm test --no-watch
36+
npm test

0 commit comments

Comments
 (0)