Skip to content

Commit 758679f

Browse files
committed
ci: add GitHub Actions workflow + CI badge
.github/workflows/ci.yml runs on push/PR to main with three jobs: - compose-validate: 'docker compose config --quiet' to catch yaml / interpolation errors. - markdown-lint: DavidAnson/markdownlint-cli2-action over README, README.es, CHANGELOG, CONTRIBUTING, SECURITY. Disables MD013 (line length) and MD033 (raw HTML) since both READMEs use HTML img tags and long lines on purpose. - shellcheck: lints scripts/ via ludeeus/action-shellcheck. Added a CI badge to both READMEs next to the existing badge banner.
1 parent 32a2a61 commit 758679f

3 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
compose-validate:
14+
name: docker compose config (syntax)
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Validate docker-compose.yml syntax
20+
run: |
21+
# Substitute env from .env.example so the validator has values
22+
cp .env.example .env
23+
docker compose config --quiet
24+
25+
markdown-lint:
26+
name: markdown lint
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Lint Markdown files
32+
uses: DavidAnson/markdownlint-cli2-action@v16
33+
with:
34+
globs: |
35+
README.md
36+
README.es.md
37+
CHANGELOG.md
38+
CONTRIBUTING.md
39+
SECURITY.md
40+
config: |
41+
{
42+
"default": true,
43+
"MD013": false,
44+
"MD033": false,
45+
"MD041": false,
46+
"MD024": { "siblings_only": true }
47+
}
48+
49+
shellcheck:
50+
name: shellcheck
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
55+
- name: Run shellcheck on scripts/
56+
uses: ludeeus/action-shellcheck@2.0.0
57+
with:
58+
scandir: ./scripts

README.es.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<img src="https://img.shields.io/badge/Throughput-~18%20tok%2Fs-43A047?style=flat-square" alt="~18 tok/s">
1212
<img src="https://img.shields.io/badge/Coste%20por%20token-%240-43A047?style=flat-square" alt="$0 token cost">
1313
<img src="https://img.shields.io/badge/Licencia-MIT-yellow?style=flat-square" alt="MIT License">
14+
<a href="https://github.com/cartesiosson/openvino-agent-stack/actions/workflows/ci.yml"><img src="https://github.com/cartesiosson/openvino-agent-stack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
1415
</p>
1516

1617
> 🌍 **English version**: [README.md](README.md)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<img src="https://img.shields.io/badge/Throughput-~18%20tok%2Fs-43A047?style=flat-square" alt="~18 tok/s">
1212
<img src="https://img.shields.io/badge/Token%20cost-%240-43A047?style=flat-square" alt="$0 token cost">
1313
<img src="https://img.shields.io/badge/License-MIT-yellow?style=flat-square" alt="MIT License">
14+
<a href="https://github.com/cartesiosson/openvino-agent-stack/actions/workflows/ci.yml"><img src="https://github.com/cartesiosson/openvino-agent-stack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
1415
</p>
1516

1617
> 🌍 **Versión en español**: [README.es.md](README.es.md)

0 commit comments

Comments
 (0)