Skip to content

test: refactor test suits #150

test: refactor test suits

test: refactor test suits #150

Workflow file for this run

name: Test
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14, 16, 18 ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run the tests
run: npm run test:coverage
- name: Submit coverage data to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}