-
Notifications
You must be signed in to change notification settings - Fork 64
98 lines (92 loc) · 3.21 KB
/
maven.yaml
File metadata and controls
98 lines (92 loc) · 3.21 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: CI Builds
on: [push]
jobs:
validate-markdown:
name: Validate Markdown Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true # Fetches all submodules
- uses: actions/setup-java@v5
with:
distribution: 'graalvm' # See 'Supported distributions' for available options
java-version: '25'
- name: Install JBang
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
- name: Validate Markdown Files
run: jbang .github/scripts/MarkdownValidator.java --verbose .
validate-skills:
name: Validate Agent Skills
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Validate SKILL.md files
run: npx skill-check@latest skills --no-security-scan --format github
env:
SKILL_CHECK_NO_BANNER: 1
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit (all files)
run: pre-commit run --all-files
- name: Validate HEAD commit message
run: |
git log -1 --pretty=%B > /tmp/commit-msg.txt
pre-commit run conventional-pre-commit --hook-stage commit-msg --commit-msg-filename /tmp/commit-msg.txt
examples:
name: Build Examples
runs-on: ubuntu-latest
strategy:
matrix:
example:
- { name: "Maven", path: "examples/maven-demo", goal: "verify" }
- { name: "Spring Boot Memory Leak", path: "examples/spring-boot-memory-leak-demo", goal: "package" }
- { name: "Spring Boot Performance Bottleneck", path: "examples/spring-boot-performance-bottleneck-demo", goal: "package" }
- { name: "Spring Boot", path: "examples/spring-boot-demo/implementation", goal: "verify -Pjacoco" }
steps:
- uses: actions/checkout@v6
with:
submodules: true # Fetches all submodules
- uses: actions/setup-java@v5
with:
distribution: 'graalvm' # See 'Supported distributions' for available options
java-version: '25'
- name: Build ${{ matrix.example.name }}
run: cd ${{ matrix.example.path }} && ./mvnw --batch-mode --no-transfer-progress ${{ matrix.example.goal }} --file pom.xml
package-agent-artifacts:
name: Package Agents and Skills
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Create agents archive
run: cd .cursor && zip -r ../agents.zip agents
- name: Create skills archive
run: zip -r skills.zip skills
- name: Upload agents.zip
uses: actions/upload-artifact@v7
with:
name: agents.zip
path: agents.zip
if-no-files-found: error
- name: Upload skills.zip
uses: actions/upload-artifact@v7
with:
name: skills.zip
path: skills.zip
if-no-files-found: error