Skip to content

Move default to test #3

Move default to test

Move default to test #3

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
nodejs: [8, 10, 12, 14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs }}
- name: Install
run: npm install
- name: Install (coverage)
if: matrix.nodejs >= 14 && matrix.os == 'ubuntu-latest'
run: npm install -g c8
- name: Test
run: npm test
- name: Test (coverage)
if: matrix.nodejs >= 14 && matrix.os == 'ubuntu-latest'
run: c8 npm test
- name: Report (coverage)
if: matrix.nodejs >= 14 && matrix.os == 'ubuntu-latest'
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}