Skip to content

feat: typescript node16 resolution support #106

feat: typescript node16 resolution support

feat: typescript node16 resolution support #106

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- master
- next
paths-ignore:
- 'bench/**'
- 'examples/**'
pull_request:
branches:
- master
- next
paths-ignore:
- 'bench/**'
- 'examples/**'
jobs:
test:
name: Node.js v${{ matrix.nodejs }}
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [10, 12, 14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}
- name: (env) pnpm
if: matrix.nodejs < 12
run: npm install -g pnpm@5 # supports Node 10.x
- name: (env) pnpm
if: matrix.nodejs >= 12
run: curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm
- name: (env) cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.nodejs }}-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.nodejs }}-
- name: Install
run: |
pnpm install
pnpm add -g nyc
- name: Linter
run: pnpm linter
- name: Test w/ Coverage
run: nyc --include=packages pnpm test
- name: Report
if: matrix.nodejs >= 12
run: |
nyc report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}