Skip to content

Commit 7f811ae

Browse files
committed
ci: add portfolio CI workflow (YAML validation)
Adds ubuntu-latest CI that validates all workflow YAML files. Provides green CI badge for portfolio visibility. Satisfies ACOR-01
1 parent d344a71 commit 7f811ae

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
for f in files:
21+
with open(f) as fh:
22+
yaml.safe_load(fh)
23+
print(' OK:', f)
24+
print('Validated', len(files), 'workflow files')
25+
"

0 commit comments

Comments
 (0)