Generate Spelling Error Report #9
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 | |
on: | |
schedule: | |
- cron: "0 8 * * 1" # Runs at 8 am every Monday | |
workflow_dispatch: | |
jobs: | |
spellchecker: | |
runs-on: ubuntu-latest | |
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: Install junit2html | |
run: pip install junit2html # Install Python-based junit2html tool | |
- name: Run spellchecker | |
run: yarn run spellcheck || true # Runs the spellcheck command | |
- name: Convert junit to html | |
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 # Upload the HTML report |