Skip to content

Feature / Drop Image #379

Feature / Drop Image

Feature / Drop Image #379

Workflow file for this run

name: Code coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update NPM
run: npm i -g npm
- name: Install dependencies
run: npm install
- name: Run the tests
run: npm run test:coverage
- name: Upload coverage to Codecov
if: ${{ matrix.node-version == '14'}}
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}