Skip to content

Commit 0958153

Browse files
committed
simpler ci
1 parent c5f5994 commit 0958153

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

β€Ž.github/workflows/ci.yml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
11
name: ci
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
- master
8-
pull_request:
9-
branches:
10-
- main
11-
- master
3+
on: push
124

135
jobs:
146
ci:
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
matrix:
19-
os: [ubuntu-latest]
20-
node: [14]
7+
runs-on: ubuntu-latest
218

229
steps:
23-
- name: Checkout πŸ›Ž
24-
uses: actions/checkout@master
10+
- name: Checkout
11+
uses: actions/checkout@v4
2512

26-
- name: Setup node env πŸ—
27-
uses: actions/setup-node@v2.1.5
13+
- name: Setup node
14+
uses: actions/setup-node@v4
2815
with:
29-
node-version: ${{ matrix.node }}
30-
31-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
32-
run: npm install
16+
node-version: 20
3317

34-
- name: Run build πŸ‘€
35-
run: npm run build
36-
37-
- name: Run linter πŸ‘€
38-
run: npm run lint
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: 8
3922

40-
- name: Run tests πŸ‘€
41-
run: npm run test
23+
- name: Run check πŸ‘€
24+
run: pnpm run check

0 commit comments

Comments
Β (0)