Skip to content

Commit 474c728

Browse files
committed
Add CI workflow
- Expanded from test.yml - Use node 16 - Cache pnpm - Explicitly set pnpm version - Add check step - Add lint step
1 parent 54d485c commit 474c728

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
1-
name: Test
1+
name: CI
22

33
on:
44
push:
55
pull_request:
66

77
jobs:
8-
test:
8+
ci:
99
if: ${{ !startsWith(github.event.head_commit.message, 'v') }}
10+
1011
runs-on: ubuntu-latest
12+
1113
steps:
1214
- uses: actions/checkout@v2
1315
- uses: actions/setup-node@v2
1416
with:
15-
node-version: 15
17+
node-version: 16
18+
cache: pnpm
1619
registry-url: https://registry.npmjs.org
1720
- name: Setup pnpm
18-
run: npm add -g pnpm
21+
run: npm add -g pnpm@6
1922
- name: Install dependencies
2023
run: pnpm install
24+
- name: Check formatting
25+
run: pnpm prettier:check-all
26+
- name: Lint
27+
run: pnpm eslint:lint-all
2128
- name: Test
2229
run: pnpm test

0 commit comments

Comments
 (0)