Files
starter-ts/.github/workflows/test.yml
T
2021-02-17 15:31:32 +08:00

41 lines
645 B
YAML

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