Skip to content

Commit 36cc299

Browse files
author
gtmdev-br
committed
ci: add GitHub Actions workflow for profile validation via agent-ci
1 parent 1628cd3 commit 36cc299

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Validate Profiles
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
19+
- name: Install agent-ci
20+
run: npm install -g @gtmdev-br/agent-ci
21+
22+
- name: Stage profiles for validation
23+
run: |
24+
mkdir -p ~/.config/opencode/opencode-profiles
25+
ln -s ${{ github.workspace }}/profiles ~/.config/opencode/opencode-profiles/profiles
26+
27+
- name: Validate all profiles
28+
run: agent-ci validate

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<a href="https://opencode.ai">
1818
<img src="https://img.shields.io/badge/OpenCode-v1.18+-black?style=for-the-badge&logo=go" alt="OpenCode">
1919
</a>
20+
<a href="https://github.com/gtmdev-br/opencode-profiles/actions/workflows/validate.yml">
21+
<img src="https://img.shields.io/github/actions/workflow/status/gtmdev-br/opencode-profiles/validate.yml?style=for-the-badge&logo=github-actions&label=CI&color=success" alt="CI">
22+
</a>
2023
<a href="https://github.com/gtmdev-br/opencode-profiles">
2124
<img src="https://img.shields.io/github/repo-size/gtmdev-br/opencode-profiles?style=for-the-badge&color=purple" alt="Repo size">
2225
</a>

0 commit comments

Comments
 (0)