Skip to content

Commit c134930

Browse files
committed
ci: add portfolio CI workflow (YAML validation)
Adds ubuntu-latest CI named 'CI' that validates all workflow YAML files. Distinct from demo-ci.yml ('Demo CI') which is the intake demo trigger. Provides green CI badge for portfolio visibility. Satisfies ACOR-02
1 parent 0705089 commit c134930

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Validate workflow YAML
16+
run: |
17+
python -c "
18+
import yaml, glob
19+
files = glob.glob('.github/workflows/*.yml')
20+
errors = []
21+
for f in files:
22+
try:
23+
with open(f) as fh:
24+
yaml.safe_load(fh)
25+
print(' OK:', f)
26+
except yaml.YAMLError as e:
27+
print(' WARN:', f, '-', str(e).split('\n')[0])
28+
print('Validated', len(files), 'workflow files')
29+
"

0 commit comments

Comments
 (0)