Skip to content

Merge pull request #23 from AdaInTheLab/feat/hallway #38

Merge pull request #23 from AdaInTheLab/feat/hallway

Merge pull request #23 from AdaInTheLab/feat/hallway #38

Workflow file for this run

name: Run tests and upload coverage
on:
push:
branches: [ main ]
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests (coverage)
run: npm run test:cov
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: true