-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (66 loc) · 1.61 KB
/
Copy pathcode-quality.yml
File metadata and controls
82 lines (66 loc) · 1.61 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Code Quality Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install yamllint
run: pip install yamllint
- name: Run yamllint
run: yamllint _config.yml _i18n/ || true
continue-on-error: true
check-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check required files
run: |
echo "Checking required files..."
FILES=(
"_config.yml"
"_layouts/default.html"
"_includes/header.html"
"_includes/footer.html"
"_i18n/en.yml"
"_i18n/ko.yml"
"assets/css/style.css"
"index.md"
)
for file in "${FILES[@]}"; do
if [ -f "$file" ]; then
echo "✓ $file"
else
echo "✗ Missing: $file"
exit 1
fi
done
echo "All required files present!"
- name: Check directory structure
run: |
echo "Checking directory structure..."
DIRS=(
"guides/en"
"guides/ko"
"community/en"
"community/ko"
"about/en"
"about/ko"
)
for dir in "${DIRS[@]}"; do
if [ -d "$dir" ]; then
echo "✓ $dir/"
else
echo "✗ Missing: $dir/"
exit 1
fi
done
echo "All required directories present!"