@@ -22,151 +22,6 @@ permissions:
2222 pull-requests : read
2323
2424jobs :
25- validate-title :
26- name : Validate PR Title
27- runs-on : ubuntu-latest
28- if : github.event_name == 'pull_request'
29- steps :
30- - uses : amannn/action-semantic-pull-request@v5
31- env :
32- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33- with :
34- requireScope : true
35- subjectPattern : ^([A-Z]).+$
36- types : |
37- build
38- ci
39- docs
40- feat
41- fix
42- perf
43- refactor
44- test
45- scopes : |
46- repo
47- release
48- cli
49- engine
50- pkg
51- docs
52- examples
53- tools
54- schemas
55- cluster
56- agent
57- auth
58- task
59- task2
60- workflow
61- memory
62- llm
63- mcp
64- runtime
65- infra
66- worker
67- core
68- autoload
69- project
70- schema
71- monitoring
72- server
73- store
74- cache
75- config
76- logger
77- template
78- swagger
79- ref
80- schemagen
81- tplengine
82- version
83-
84- pre-commit :
85- name : Pre-commit
86- runs-on : ubuntu-latest
87- # Skip pre-commit for release PRs to avoid formatting conflicts with generated files
88- if : ${{ !startsWith(github.head_ref, 'release/') }}
89- steps :
90- - uses : actions/checkout@v4
91-
92- - name : Check workflow files
93- uses : docker://rhysd/actionlint:latest
94- env :
95- SHELLCHECK_OPTS : --exclude=SC2086,SC2129
96- with :
97- args : -color
98-
99- - name : Set up Go with caching
100- uses : ./.github/actions/setup-go
101- with :
102- go-version : ${{ env.GO_VERSION }}
103- install-tools : " true"
104-
105- - name : Install Python
106- uses : actions/setup-python@v5
107-
108- - name : Setup Bun
109- uses : ./.github/actions/setup-bun
110-
111- - name : Install pre-commit
112- run : pip install pre-commit
113-
114- - name : Run pre-commit
115- run : pre-commit run --all-files
116-
117- commitlint :
118- name : Validating commits
119- runs-on : ubuntu-latest
120- steps :
121- - uses : actions/checkout@v4
122- with :
123- fetch-depth : 0
124-
125- - name : Setup Bun
126- uses : ./.github/actions/setup-bun
127-
128- - name : Validate current commit (last commit) with commitlint
129- if : github.event_name == 'push'
130- run : bunx commitlint --last --verbose
131-
132- - name : Validate PR commits with commitlint
133- if : github.event_name == 'pull_request'
134- run : |
135- bunx commitlint \
136- --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} \
137- --to ${{ github.event.pull_request.head.sha }} \
138- --verbose
139-
140- # Detect which components have changed to optimize build times
141- changes :
142- runs-on : ubuntu-latest
143- timeout-minutes : 10
144- outputs :
145- backend : ${{ steps.filter.outputs.backend }}
146- frontend : ${{ steps.filter.outputs.frontend }}
147- docs : ${{ steps.filter.outputs.docs }}
148- steps :
149- - name : Checkout code
150- uses : actions/checkout@v4
151-
152- - name : Check for changes
153- uses : dorny/paths-filter@v3
154- id : filter
155- with :
156- filters : |
157- backend:
158- - '**/*.go'
159- - 'go.mod'
160- - 'go.sum'
161- - 'Makefile'
162- - '.github/workflows/ci.yml'
163- - 'cmd/**'
164- - 'internal/**'
165- docs:
166- - 'docs/**'
167- - '*.md'
168- - 'README.md'
169-
17025 # Go backend testing with testcontainers
17126 test :
17227 runs-on : ubuntu-latest
0 commit comments