-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (32 loc) · 896 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: 'master'
pull_request:
branches: '*'
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 6.35.1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Prettier
run: pnpm prettier
- name: Run Eslint
run: pnpm eslint
- name: Run Stylelint
run: pnpm stylelint
- name: Run test
run: pnpm test
- name: Run build
run: pnpm build