Skip to content

fix: 修复 lint 错误 #683

fix: 修复 lint 错误

fix: 修复 lint 错误 #683

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [windows-2019]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, lts]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-${{ matrix.node-version }}
${{ matrix.os }}-node-
${{ matrix.os }}-
- run: npm install
- run: npm run lint
- run: npm run build --if-present
- run: npm run test
- name: Update Code Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: dist
path: dist