convert all rendered html to json for testability purpose #76
Workflow file for this run
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: MJBarChart Test | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node and NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install and Build | |
run: npm ci | |
- name: Prettier | |
run: npm run prettier | |
- name: Tests | |
run: npm run test:coverage | |
- name: Code Coverage Summary Report | |
uses: irongut/[email protected] | |
with: | |
filename: coverage/cobertura-coverage.xml | |
badge: true | |
indicators: true | |
fail_below_min: true | |
thresholds: "70 90" | |
format: markdown | |
output: both | |
- name: Generate Changelog | |
run: git log --oneline $(git describe --tags --abbrev=0)..HEAD >> CHANGELOG.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
body_path: CHANGELOG.txt | |
draft: true |