Skip to content

Commit 1c54cc4

Browse files
authored
Merge branch 'main' into feature/test-actions
2 parents 464cfc0 + 6d24016 commit 1c54cc4

File tree

1 file changed

+7
-47
lines changed

1 file changed

+7
-47
lines changed
+7-47
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Lint and type checking
2-
32
on:
43
pull_request:
54
branches:
65
- main
76

87
jobs:
9-
lint-and-type-checking-install:
8+
lint-and-type-checking:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout
@@ -17,56 +16,17 @@ jobs:
1716
- name: Setup pnpm
1817
uses: pnpm/action-setup@v4
1918

20-
- name: Cache pnpm store
21-
id: cache
22-
uses: actions/cache@v3
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
2321
with:
24-
path: ~/.pnpm-store
25-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
26-
restore-keys: |
27-
${{ runner.os }}-pnpm-
22+
node-version: '22'
23+
cache: pnpm
2824

2925
- name: Install dependencies
3026
run: pnpm install
3127

32-
lint-check:
33-
needs: lint-and-type-checking-install
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v4
38-
with:
39-
fetch-depth: 0
40-
41-
- name: Cache pnpm store
42-
id: cache
43-
uses: actions/cache@v3
44-
with:
45-
path: ~/.pnpm-store
46-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
47-
restore-keys: |
48-
${{ runner.os }}-pnpm-
49-
5028
- name: Run lint check
51-
run: pnpm run lint:eslint
52-
53-
type-check:
54-
needs: lint-and-type-checking-install
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Checkout
58-
uses: actions/checkout@v4
59-
with:
60-
fetch-depth: 0
61-
62-
- name: Cache pnpm store
63-
id: cache
64-
uses: actions/cache@v3
65-
with:
66-
path: ~/.pnpm-store
67-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
68-
restore-keys: |
69-
${{ runner.os }}-pnpm-
29+
run: npm run lint:eslint
7030

7131
- name: Run type check
72-
run: pnpm run type:check
32+
run: npm run type:check

0 commit comments

Comments
 (0)