CI - Tests #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |