This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
feat: 适配基础库 3.0.0 #9
Workflow file for this run
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 | |
on: | |
- push | |
- pull_request | |
jobs: | |
run-lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Restore node_modules | |
uses: actions/cache@v2 | |
id: node-modules-cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install PNPM | |
run: npm install -g pnpm@7 | |
- name: Install Deps | |
if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Run ESLint | |
run: npm run eslint | |
- name: Run Build | |
run: npm run build |