-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 2.3 KB
/
validate.yml
File metadata and controls
81 lines (68 loc) · 2.3 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
name: Validate
on:
pull_request:
push:
branches:
- main
jobs:
validation:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Shell syntax checks
run: |
bash -n install.sh
bash -n scripts/*.sh
- name: Validate profile JSON files
run: |
python3 -m json.tool profiles/registry.json >/dev/null
python3 -m json.tool profiles/core/manifest.json >/dev/null
python3 -m json.tool profiles/council-lite/manifest.json >/dev/null
python3 -m json.tool profiles/council-research/manifest.json >/dev/null
- name: Installer profile commands smoke test
run: |
./install.sh --list-profiles
./install.sh --status
./install.sh --conflict-policy fail --profiles core,council-lite
./install.sh --conflict-policy skip --profiles core,council-lite
./install.sh --profiles core,council-lite
./install.sh --enable-profile council-research
./install.sh --disable-profile council-research
./install.sh --uninstall
- name: Verify profile state removed on uninstall
run: |
test ! -f "$HOME/.config/opencode/profiles-enabled.json"
- name: Council-lite script smoke test
run: |
./install.sh --profiles core,council-lite
./scripts/council-lite.sh status
./scripts/council-lite.sh run "CI smoke test goal"
./scripts/council-lite.sh list
SESSION_ID=$(python3 - <<'PY'
import json
from pathlib import Path
data = json.loads(Path("memory/council-lite/index.json").read_text())
print(data["sessions"][-1]["id"])
PY
)
./scripts/council-lite.sh resume "$SESSION_ID"
./scripts/validate-council-lite.sh --latest
./install.sh --uninstall
secret-scan:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}