Skip to content

Commit

Permalink
Show misspellings in workflow summary (#78)
Browse files Browse the repository at this point in the history
* show typos

* fix

* fix

* fix

* fix

* Update test.yml

* Update minosegellenorzes-a-webfejlesztesben.md
  • Loading branch information
szepeviktor authored Jun 15, 2024
1 parent e93190d commit f3eba8f
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
-
name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
-
name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -43,6 +45,28 @@ jobs:
-
name: Search for misspellings
uses: crate-ci/typos@master
-
name: Install Hunspell
run: sudo -- apt-get install -y hunspell gettext
-
name: Checkout dictionaries
uses: actions/checkout@v4
with:
repository: LibreOffice/dictionaries
path: libreoffice-dictionaries
-
name: Display misspellings in summary
run: |
{
echo '```'
git diff HEAD^ -- 'src/hu/' 'src/_data/*.json' ':!:*.png' \
| sed -e '/^diff --git/,/^@@ /d' \
| sed -ne 's#^+\(.\+\)#\1#p' \
| hunspell -d ./libreoffice-dictionaries/hu_HU/hu_HU -p hunspell.txt -l \
| sort -f \
| uniq -i
echo '```'
} >>"${GITHUB_STEP_SUMMARY}"
lint_links:
name: Lint Links
Expand Down
45 changes: 45 additions & 0 deletions hunspell.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
adamlaki
admin
caption
class
CMS
CRM
css
date
define
description
div
href
html
icon
image
img
initial
js
Laravel
li
mode
open-source
permalink
php
public
querySelector
Rocket
section
SimplePay
spam
src
staging
strong
style
tags
td
the
thumbnail
thumbnailAlt
title
tr
true
WooCommerce
WordPress
WP

0 comments on commit f3eba8f

Please sign in to comment.