mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 15:46:29 +08:00
d8c89bff0c
* feat: add t7 and code update * chore(husky): add prepare commit msg * fix: dashboard getScatterDataSet fix * ci(pull request): add pull request cache * fix: dashboard chart render error
29 lines
724 B
YAML
29 lines
724 B
YAML
name: MAIN_PULL_REQUEST
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [develop, main]
|
|
|
|
jobs:
|
|
MAIN_PULL_REQUEST:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache nodemodules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-nodemodules
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- run: npm install
|
|
shell: bash
|
|
- run: npm run lint
|