Github Action - Generates report.html for Spellchecker #2
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: Generate Spelling Error Report | ||
name: Spellchecker Timeplus | ||
on: | ||
workflow_dispatch: | ||
env: | ||
PRINCE_VER: 15.3 | ||
jobs: | ||
spellchecker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4.2.2 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v4.1.0 | ||
with: | ||
node-version: 18.0 | ||
- name: Install Yarn Dependencies | ||
run: yarn install | ||
- name: Install Spellchecker CLI | ||
run: yarn global add spellchecker-cli # Install spellchecker-cli globally | ||
- name: Run spellchecker | ||
run: yarn run spellcheck || true | ||
- name: Install junit2html | ||
run: pip install junit2html | ||
- name: Generate HTML Report | ||
run: junit2html spellchecker/report.junit.xml spellchecker/report.html | ||
- name: Upload HTML Report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Spellchecker Report | ||
path: spellchecker/report.html |