-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.34 KB
/
ci.yml
File metadata and controls
57 lines (47 loc) · 1.34 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
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch: # Allow manual trigger
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: './scripts'
severity: warning
check_together: 'yes'
docker-build:
name: Docker Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Test docker-compose configuration
run: |
docker compose config
- name: Verify required files exist
run: |
test -f docker-compose.yml
test -f scripts/entrypoint-passwordless.sh
test -f configs/unsloth-sudoers
echo "✓ All required files present"
syntax-check:
name: Syntax Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check shell script syntax
run: |
for script in scripts/*.sh; do
echo "Checking $script..."
bash -n "$script"
done
echo "✓ All scripts have valid syntax"