Skip to content

CI - Tests

CI - Tests #19

Workflow file for this run

name: CI - Tests
on:
workflow_dispatch:
workflow_run:
workflows: [ "Ci - Standards" ]
types:
- completed
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: [16.x, 17.x, 18.x, 19.x]
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
- name: Setup NodeJS - ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm test
- name: Codecov Upload
if: always() # Needed to ensure coverage is commited even on test failure
uses: codecov/codecov-action@v3
with:
files: ./tests/coverage/clover.xml