Skip to content

Bump nyc from 17.0.0 to 17.1.0 #792

Bump nyc from 17.0.0 to 17.1.0

Bump nyc from 17.0.0 to 17.1.0 #792

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
IS_COVERAGE_ALLOWED: ${{ secrets.CODACY_PROJECT_TOKEN != '' }}
IS_MASTER_BRANCH: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
if $IS_COVERAGE_ALLOWED && $IS_MASTER_BRANCH; then
npm run test-with-coverage
npm run upload-coverage
else
npm run test
fi
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}