feat: update!

This commit is contained in:
Anthony Fu committed 2021-02-17 15:31:32 +08:00
1 parent a610154140
commit bba0a5148a
12 files changed
+5995 -8979

No files matched your search

+26 -10
View File
@@ -1,24 +1,40 @@
name: Test
on: [push]
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Lint
run: npm run lint
- name: Setup
run: npm i -g pnpm @antfu/ni
- name: Test
run: npm test
- name: Install
run: nci
- name: Lint
run: nr lint --if-present
- name: Test
run: nr test --if-present