Skip to content

Commit 1282956

Browse files
committed
fix: ci error
1 parent 8a3fcd3 commit 1282956

File tree

1 file changed

+32
-17
lines changed

1 file changed

+32
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
1-
name: Code Check
2-
31
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
2+
- push
3+
- pull_request
4+
5+
permissions: read-all
106

117
jobs:
12-
check:
13-
runs-on: ubuntu-22.04
8+
ci:
9+
runs-on: ubuntu-latest
1410
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Launch Turbo Remote Cache Server
15+
uses: dtinth/setup-github-actions-caching-for-turbo@v1.1.0
16+
17+
- name: Install npm
18+
uses: npm/action-setup@v2
19+
with:
20+
version: 8
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v3
1724
with:
18-
node-version: "20"
25+
node-version: 18
1926
cache: "npm"
20-
- run: npm ci
21-
- run: npm run format:check
22-
- run: npm run lint
23-
- run: npm run test
27+
28+
- name: Install dependencies
29+
run: npm i
30+
31+
- name: Format Check
32+
run: npm run format:check
33+
34+
- name: Lint
35+
run: npm run lint
36+
37+
- name: Test
38+
run: npm run test

0 commit comments

Comments
 (0)