-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
45 lines (41 loc) · 1.23 KB
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
40
41
42
43
44
45
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."