Skip to content

Merge branch 'master' into dependabot/npm_and_yarn/master/eslint-plug… #767

Merge branch 'master' into dependabot/npm_and_yarn/master/eslint-plug…

Merge branch 'master' into dependabot/npm_and_yarn/master/eslint-plug… #767

Workflow file for this run

name: 'Unit Tests'
on: [push]
jobs:
run-tests:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
run: npm ci
- name: Run tests & submit coverage report
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test
coverageLocations: "coverage/lcov.info:lcov"
dependabot-tests:
if: ${{ github.actor == 'dependabot[bot]' }}
name: Dependabot Unit Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
run: npm ci
- name: Run tests
run: npm run test