chore: ci #641
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@master | |
- name: install | |
run: yarn | |
- name: lint | |
run: yarn 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 && yarn | |
- 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 |