Skip to content

Commit 2f524bc

Browse files
committed
(chore) update CI
1 parent b84e9e0 commit 2f524bc

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed
Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: validate
1+
name: ci
22
on:
33
push:
44
branches: ['main']
@@ -9,45 +9,40 @@ jobs:
99
build:
1010
name: 'Build'
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [15]
1215
steps:
1316
- name: ⬇️ Checkout repo
1417
uses: actions/checkout@v2
15-
16-
- name: 💾 Cache node modules
17-
uses: actions/cache@v2
18-
env:
19-
cache-name: cache-node-modules
18+
- uses: pnpm/[email protected]
2019
with:
21-
path: ~/.npm
22-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
23-
restore-keys: |
24-
${{ runner.os }}-build-${{ env.cache-name }}-
25-
${{ runner.os }}-build-
26-
${{ runner.os }}-
27-
- name: ⎔ Setup node
28-
uses: actions/setup-node@v1
20+
version: 7.0.0
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v2
2923
with:
30-
node-version: '14'
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'pnpm'
3126

3227
- name: 📀 Install dependencies
33-
run: npm install
28+
run: pnpm install
3429

3530
- name: 🧹 Lint
36-
run: npm run lint
31+
run: pnpm run lint
3732

3833
- name: 😍 Prettier check
39-
run: npm run check
34+
run: pnpm run check
4035

4136
- name: 🧪 Test
42-
run: npm run coverage
37+
run: pnpm run coverage
4338

4439
- name: ⏫ Upload coverage
4540
uses: coverallsapp/github-action@master
4641
with:
4742
github-token: ${{ secrets.GITHUB_TOKEN }}
4843

4944
- name: 👷‍♀️ Build
50-
run: npm run build
45+
run: pnpm run build
5146

5247
- name: ⏫ Upload build artifacts
5348
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)