Skip to content

Bump @types/node from 18.8.4 to 22.5.5 #159

Bump @types/node from 18.8.4 to 22.5.5

Bump @types/node from 18.8.4 to 22.5.5 #159

Workflow file for this run

name: 'Unit Tests'
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: current
- run: npm ci
- run: npm test
- name: upload junit
uses: actions/upload-artifact@v1
with:
name: junit
path: junit.xml
# displays in summary page
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: 'junit.xml'
# more in depth junit in console and annotations on failures
- uses: ashley-taylor/[email protected]
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
path: junit.xml
- run: npm run test:coverage
- name: upload code coverage
uses: actions/upload-artifact@v1
with:
name: Report-CodeCoverage
path: coverage
# adds coverage comment to pr
- name: parse coverage
uses: danhunsaker/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
clover-file: ./coverage/clover.xml