Skip to content

Commit 827adee

Browse files
authored
Add GitHub Actions workflow for testing Svelte versions
1 parent 8d2e7aa commit 827adee

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
main
7+
pull_request:
8+
branches:
9+
main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
svelte-version: [svelte3, svelte4, svelte5-legacy]
17+
fail-fast: false
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v5
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v5
25+
with:
26+
node-version: 24
27+
28+
- name: Install dependencies
29+
run: |
30+
npm ci
31+
cd tests/${{ matrix.svelte-version }}
32+
npm install
33+
34+
- name: Run tests
35+
run: |
36+
cd tests/${{ matrix.svelte-version }}
37+
npm test --no-watch

0 commit comments

Comments
 (0)