Skip to content

Commit 65e33f0

Browse files
committed
ci: update ci
1 parent 802b243 commit 65e33f0

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,34 @@ on:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11+
1112
steps:
12-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@v4
1315

1416
- name: Install pnpm
15-
run: |
16-
corepack enable
17-
corepack use pnpm@*
17+
uses: pnpm/action-setup@v4
1818

19-
- name: Set node
19+
- name: Setup node
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 22.x
22+
node-version: lts/*
2323
cache: pnpm
2424

25-
- name: Install
25+
- name: Install dependencies
2626
run: pnpm install
2727

2828
- name: Lint
29-
run: pnpm lint
30-
31-
typecheck:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v4
35-
36-
- name: Install pnpm
37-
run: |
38-
corepack enable
39-
corepack use pnpm@*
40-
41-
- name: Set node
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: 22.x
45-
cache: pnpm
46-
47-
- name: Install
48-
run: pnpm install
29+
run: pnpm run lint
4930

5031
- name: Typecheck
51-
run: pnpm typecheck
32+
run: pnpm run typecheck
5233

5334
test:
5435
runs-on: ubuntu-latest
5536
strategy:
5637
matrix:
57-
node: [18.x, 20.x, 22.x]
38+
node: [22.x, 24.x]
5839
env:
5940
LOKI_HOST: ${{ secrets.LOKI_HOST }}
6041
LOKI_USERNAME: ${{ secrets.LOKI_USERNAME }}
@@ -64,9 +45,7 @@ jobs:
6445
- uses: actions/checkout@v4
6546

6647
- name: Install pnpm
67-
run: |
68-
corepack enable
69-
corepack use pnpm@*
48+
uses: pnpm/action-setup@v4
7049

7150
- name: Set node version to ${{ matrix.node }}
7251
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)