Skip to content

Test Converters

Test Converters #37

name: frameworkTesting
run-name: Test Converters
on:
push:
branches:
- main
- feature/*
paths:
- "src/**"
pull_request:
branches:
- main
paths:
- "src/**"
jobs:
run-converter-tests:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm install
- run: npm run test
- name: Convert code coverage results
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/*.xml
badge: true
format: 'markdown'
output: 'file'
- name: Add code coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: Write to job summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY