tdesign-vue-next-starter/.github/workflows/pull-request.yml

29 lines
724 B
YAML
Raw Normal View History

2021-11-26 11:40:26 +08:00
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 }}-
2021-12-20 10:44:35 +08:00
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
shell: bash
- run: npm run lint