Skip to content

Commit 218f87d

Browse files
committed
ci
1 parent c343257 commit 218f87d

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/github-ci.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,28 @@ name: Run CI on commit-graph
22
on:
33
pull_request:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
workflow_dispatch:
77

88
jobs:
99
ci:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
1516
with:
16-
node-version: "18"
17-
- name: Run the "npm ci" command
18-
run: npm ci
19-
- name: Run the "npm run build" command
20-
run: npm run build
21-
- name: Run the "npm test" command
22-
run: npm test
17+
node-version: "22"
18+
- name: Enable Corepack
19+
run: corepack enable
20+
- name: Install dependencies
21+
run: yarn install --immutable
22+
- name: Lint
23+
run: yarn lint
24+
- name: Type check
25+
run: yarn compile
26+
- name: Test
27+
run: yarn test
28+
- name: Build
29+
run: yarn build

0 commit comments

Comments
 (0)