Skip to content

Add color checks

Add color checks #32

Workflow file for this run

name: i18n-check
on: [push]
jobs:
build:
name: i18n-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: install i18n-check
run: |
git clone https://github.com/Blake-Madden/i18n-check.git --recurse-submodules
cd i18n-check
cmake ./
make -j4
cd ..
- name: analyze
run: |
./i18n-check/bin/i18n-check ./ --ignore=i18n-check -q --enable=allI18N,allCodeFormatting -o wxSPresults.txt
cat wxSPresults.txt
- name: print output
run: |
REPORTFILE=./wxSPresults.txt
WARNINGSFILE=./warnings.txt
if test -f "$REPORTFILE"; then
cat "$REPORTFILE" > "$WARNINGSFILE"
# are there any warnings?
if grep -qP '\[[a-zA-Z0-9]+\]' "$WARNINGSFILE"; then
# print the remaining warnings
echo Warnings detected:
echo ==================
cat "$WARNINGSFILE" | grep -P '\[[a-zA-Z0-9]+\]'
# fail the job
exit 1
else
echo No warnings detected
fi
else
echo "$REPORTFILE" not found
fi