forked from ant-design/pro-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (27 loc) · 811 Bytes
/
test.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
name: Test CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: install
run: npm install
- name: lint
run: npm run lint
test-js:
runs-on: ubuntu-latest
steps:
- name: clone
run: git clone https://github.com/ant-design/ant-design-pro.git --depth=1
- name: install
run: cd ant-design-pro && npm install
- name: fetch
run: cd ant-design-pro && yarn pro fetch-blocks --js --branch ${GITHUB_REF##*/}
- name: lint:fix
run: cd ant-design-pro && npm run lint:fix && yarn run prettier
- name: lint
run: cd ant-design-pro && npm run lint
- name: build
run: cd ant-design-pro && npm run build