-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.61 KB
/
Copy pathtemplate-validation.yml
File metadata and controls
67 lines (55 loc) · 1.61 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
name: Template Validation Pipeline
on:
push:
branches: [main, develop]
paths:
- 'templates/**/*.yaml'
- 'src/generation/**/*.ts'
pull_request:
branches: [main]
paths:
- 'templates/**/*.yaml'
- 'src/generation/**/*.ts'
workflow_dispatch:
jobs:
template-validation:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install OpenCode
run: curl -fsSL https://opencode.ai/install | bash
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Validate Template YAML Structure
run: make templates-validate
- name: Validate Generated Shell Syntax
run: make templates-syntax
- name: Execute Template Integration Tests
run: make templates-all
timeout-minutes: 15
- name: Archive Generated Scripts
if: failure()
uses: actions/upload-artifact@v4
with:
name: failed-template-outputs
path: dev/generated-outputs/templates/
retention-days: 7
- name: Archive Execution Results
if: failure()
uses: actions/upload-artifact@v4
with:
name: execution-failure-logs
path: dev/execution-results/templates/
retention-days: 7