Skip to content

Commit be8044c

Browse files
Copilotpelikhan
andcommitted
Add actions-build job to CI workflow
- Added new actions-build job that depends on lint - Job builds and validates all custom actions in CI - Added actions/** to pull_request paths to trigger CI on action changes - Ensures actions compile correctly before merging Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent b4664af commit be8044c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- '**.go'
99
- 'pkg/workflow/**'
10+
- 'actions/**'
1011
- '.github/workflows/ci.yml'
1112
- '.github/workflows/**/*.md'
1213
workflow_dispatch:
@@ -285,6 +286,42 @@ jobs:
285286
- name: Lint error messages
286287
run: make lint-errors
287288

289+
actions-build:
290+
needs: [lint]
291+
runs-on: ubuntu-latest
292+
permissions:
293+
contents: read
294+
concurrency:
295+
group: ci-${{ github.ref }}-actions-build
296+
cancel-in-progress: true
297+
steps:
298+
- name: Checkout code
299+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
300+
301+
- name: Set up Go
302+
id: setup-go
303+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
304+
with:
305+
go-version-file: go.mod
306+
cache: true
307+
308+
- name: Report Go cache status
309+
run: |
310+
if [ "${{ steps.setup-go.outputs.cache-hit }}" == "true" ]; then
311+
echo "✅ Go cache hit" >> $GITHUB_STEP_SUMMARY
312+
else
313+
echo "⚠️ Go cache miss" >> $GITHUB_STEP_SUMMARY
314+
fi
315+
316+
- name: Verify dependencies
317+
run: go mod verify
318+
319+
- name: Build actions
320+
run: make actions-build
321+
322+
- name: Validate actions
323+
run: make actions-validate
324+
288325
fuzz:
289326
needs: [test]
290327
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)