Skip to content

chore: code refine #1523

chore: code refine

chore: code refine #1523

Workflow file for this run

name: Test
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v3
id: npm-cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm install
- name: Jest
run: |
npm run build
npm run lint
npm exec tsc
npm test