-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (30 loc) · 1.06 KB
/
spellchecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.2.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