Skip to content

Commit f270125

Browse files
committed
chore: update test action
1 parent ae4cb05 commit f270125

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test & Release
1+
name: Tests & Lint
22

33
on:
44
push:
@@ -7,6 +7,36 @@ on:
77
pull_request:
88

99
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node 22
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
registry-url: https://registry.npmjs.org/
22+
23+
- name: Setup PNPM
24+
uses: pnpm/action-setup@v3.0.0
25+
with:
26+
version: 8.12.1
27+
28+
- name: Install deps
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Build package
32+
run: pnpm package
33+
34+
- name: Lint
35+
run: pnpm lint
36+
37+
- name: Astro & Svelte Check
38+
run: pnpm check
39+
1040
tests:
1141
name: Test
1242
runs-on: ubuntu-latest
@@ -15,7 +45,7 @@ jobs:
1545
node: [18, 20, 22]
1646
steps:
1747
- name: Checkout Repo
18-
uses: actions/checkout@v2
48+
uses: actions/checkout@v4
1949

2050
- name: Setup Node ${{ matrix.node }}
2151
uses: actions/setup-node@v4
@@ -34,12 +64,6 @@ jobs:
3464
- name: Build package
3565
run: pnpm package
3666

37-
- name: Lint
38-
run: pnpm lint
39-
40-
- name: Astro & Svelte Check
41-
run: pnpm check
42-
4367
- name: Test
4468
run: pnpm test
4569

0 commit comments

Comments
 (0)