-
-
Notifications
You must be signed in to change notification settings - Fork 102
117 lines (106 loc) · 3.41 KB
/
test.yaml
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
107
108
109
110
111
112
113
114
115
116
117
---
name: test
on:
pull_request:
branches: [main]
permissions: {}
env:
AQUA_LOG_COLOR: always
jobs:
path-filter:
# Get changed files to filter jobs
outputs:
renovate-config-validator: ${{steps.changes.outputs.renovate-config-validator}}
check-files: ${{steps.changes.outputs.check-files}}
generate-registry: ${{steps.changes.outputs.generate-registry}}
json-schema: ${{steps.changes.outputs.json-schema}}
test-docker: ${{steps.changes.outputs.test-docker}}
runs-on: ubuntu-latest
permissions: {}
timeout-minutes: 15
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
filters: |
renovate-config-validator:
- renovate.json5
- .github/workflows/wc-renovate-config-validator.yaml
check-files:
- pkgs/**/pkg.yaml
- pkgs/**/registry.yaml
- .github/workflows/wc-check-files.yaml
generate-registry:
- aqua/generate-registry.yaml
- registry.yaml
- pkgs/**/registry.yaml
- .github/workflows/wc-generate-registry.yaml
json-schema:
- registry.yaml
- .github/workflows/wc-json-schema.yaml
test-docker:
- docker/*
- scripts/**
- cmdx.yaml
- .github/workflows/wc-test-docker.yaml
status-check:
# This job is used for main branch's branch protection rule's status check.
# If all dependent jobs succeed or are skipped this job succeeds.
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- enable-automerge-renovate
- renovate-config-validator
- check-files
- generate-registry
- json-schema
- prettier
- test-docker
- test
- lintnet
permissions: {}
if: failure()
steps:
- run: exit 1
enable-automerge-renovate:
uses: ./.github/workflows/wc-enable-auto-merge.yaml
if: |
github.event.pull_request.user.login == 'renovate[bot]' && contains(github.event.pull_request.body, ' **Automerge**: Enabled.')
secrets:
gh_app_id: ${{secrets.APP_ID}}
gh_app_private_key: ${{secrets.APP_PRIVATE_KEY}}
renovate-config-validator:
uses: ./.github/workflows/wc-renovate-config-validator.yaml
needs: path-filter
if: ${{needs.path-filter.outputs.renovate-config-validator == 'true'}}
permissions:
contents: read
check-files:
uses: ./.github/workflows/wc-check-files.yaml
needs: path-filter
if: ${{needs.path-filter.outputs.check-files == 'true'}}
permissions: {}
generate-registry:
uses: ./.github/workflows/wc-generate-registry.yaml
needs: path-filter
if: ${{needs.path-filter.outputs.generate-registry == 'true'}}
permissions: {}
json-schema:
uses: ./.github/workflows/wc-json-schema.yaml
needs: path-filter
if: ${{needs.path-filter.outputs.json-schema == 'true'}}
permissions: {}
prettier:
uses: ./.github/workflows/wc-prettier.yaml
permissions: {}
test-docker:
uses: ./.github/workflows/wc-test-docker.yaml
needs: path-filter
if: ${{needs.path-filter.outputs.test-docker == 'true'}}
ci-info:
uses: ./.github/workflows/wc-ci-info.yaml
lintnet:
uses: ./.github/workflows/wc-lintnet.yaml
test:
needs: ci-info
uses: ./.github/workflows/wc-test.yaml