Skip to content

fix(tests): grep -c count duplication on zero matches #5

fix(tests): grep -c count duplication on zero matches

fix(tests): grep -c count duplication on zero matches #5

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
shellcheck -S warning config.sh coordinator.sh worker.sh summary.sh summary-morning.sh lesson-generator.sh install.sh
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Make scripts executable
run: chmod +x *.sh tests/*.sh
- name: Run tests
run: ./tests/test-nightshift.sh
language-check:
name: English Only
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for non-English strings
run: |
GERMAN=$(grep -rlP '\xc3[\xa4\xb6\xbc\x9f]' --include='*.sh' --exclude-dir=tests . || true)
if [[ -n "$GERMAN" ]]; then
echo "Files with German characters:"
echo "$GERMAN"
grep -rnP '\xc3[\xa4\xb6\xbc\x9f]' --include='*.sh' --exclude-dir=tests .
exit 1
fi
echo "All clear — no German strings found."