Repository navigation
106 lines (95 loc) · 2.94 KB
/
Copy pathci.yml
File metadata and controls
106 lines (95 loc) · 2.94 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
99
100
101
102
103
104
105
106
name: CI
on:
pull_request:
branches: [master]
push:
branches: [master]
schedule:
- cron: '21 18 * * *'
workflow_dispatch:
inputs:
full:
description: Run the full compatibility and end-to-end matrix
type: boolean
default: true
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
plan:
name: Plan
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
backend: ${{ steps.plan.outputs.backend }}
frontend: ${{ steps.plan.outputs.frontend }}
integration: ${{ steps.plan.outputs.integration }}
e2e: ${{ steps.plan.outputs.e2e }}
native: ${{ steps.plan.outputs.native }}
full: ${{ steps.plan.outputs.full }}
frontend_matrix: ${{ steps.plan.outputs.frontend_matrix }}
e2e_matrix: ${{ steps.plan.outputs.e2e_matrix }}
network_frameworks: ${{ steps.plan.outputs.network_frameworks }}
database: ${{ steps.plan.outputs.database }}
release: ${{ steps.plan.outputs.release }}
plan_json: ${{ steps.plan.outputs.plan_json }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- id: plan
run: python .github/scripts/ci_plan.py plan
quality:
name: Quality
needs: plan
uses: ./.github/workflows/ci-quality.yml
backend:
name: Backend
needs: plan
if: needs.plan.outputs.backend == 'true'
uses: ./.github/workflows/ci-backend.yml
frontend:
name: Frontend
needs: plan
if: needs.plan.outputs.frontend == 'true'
uses: ./.github/workflows/ci-frontend.yml
with:
matrix_json: ${{ needs.plan.outputs.frontend_matrix }}
full: ${{ needs.plan.outputs.full == 'true' }}
integration:
name: Integration
needs: plan
if: needs.plan.outputs.integration == 'true'
uses: ./.github/workflows/ci-integration.yml
with:
database: ${{ needs.plan.outputs.database == 'true' }}
release: ${{ needs.plan.outputs.release == 'true' }}
network_frameworks: ${{ needs.plan.outputs.network_frameworks }}
full: ${{ needs.plan.outputs.full == 'true' }}
e2e:
name: E2E
needs: plan
if: needs.plan.outputs.e2e == 'true'
uses: ./.github/workflows/ci-e2e.yml
with:
matrix_json: ${{ needs.plan.outputs.e2e_matrix }}
native:
name: Native
needs: plan
if: needs.plan.outputs.native == 'true'
uses: ./.github/workflows/ci-native.yml
result:
name: Result
if: always()
needs: [plan, quality, backend, frontend, integration, e2e, native]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- name: Require every selected category to succeed
env:
PLAN_JSON: ${{ needs.plan.outputs.plan_json }}
NEEDS_JSON: ${{ toJSON(needs) }}
run: python .github/scripts/ci_plan.py gate