File tree Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Expand file tree Collapse file tree 3 files changed +56
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
name : Code Style
3
3
4
- on : pull_request
4
+ on :
5
+ pull_request : {}
6
+
7
+ merge_group :
8
+ types : [checks_requested]
5
9
6
10
jobs :
7
11
lint :
21
25
- name : run lint test
22
26
run : |
23
27
make run-lint
28
+ required-checks :
29
+ name : Code Style Required Checks
30
+ # This check adds a list of checks to one job to simplify adding settings to the repo.
31
+ # If a new check is added in this file, and it should be retested on entry to the merge queue,
32
+ # it needs to be added to the list below aka needs: [ existing check 1, existing check 2, new check ].
33
+ needs :
34
+ - lint
35
+ if : always()
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - run : echo '${{ toJSON(needs) }}' | jq -e 'all(.[]; .result == "success" or .result == "skipped")'
Original file line number Diff line number Diff line change @@ -3,14 +3,17 @@ name: Command Testing
3
3
4
4
on :
5
5
push :
6
- branches : [ 'main' ]
6
+ branches : ['main']
7
7
8
8
pull_request :
9
- branches : [ '*' ]
9
+ branches : ['*']
10
+
11
+ merge_group :
12
+ types : [checks_requested]
10
13
11
14
jobs :
12
- install :
13
- name : Run kuadrantctl generate
15
+ generate-httproute :
16
+ name : Run kuadrantctl generate gatewayapi httproute
14
17
runs-on : ubuntu-latest
15
18
env :
16
19
KIND_CLUSTER_NAME : kuadrantctl-local
28
31
- name : run command
29
32
run : |
30
33
bin/kuadrantctl generate gatewayapi httproute --oas examples/oas3/gateway-api-petstore.yaml
34
+
35
+ required-checks :
36
+ name : Command Testing Required Checks
37
+ # This check adds a list of checks to one job to simplify adding settings to the repo.
38
+ # If a new check is added in this file, and it should be retested on entry to the merge queue,
39
+ # it needs to be added to the list below aka needs: [ existing check 1, existing check 2, new check ].
40
+ needs :
41
+ - generate-httproute
42
+ if : always()
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - uses : actions/checkout@v4
46
+ - run : echo '${{ toJSON(needs) }}' | jq -e 'all(.[]; .result == "success" or .result == "skipped")'
Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ name: Testing
3
3
4
4
on :
5
5
push :
6
- branches : [ 'main' ]
6
+ branches : ['main']
7
+
8
+ merge_group :
9
+ types : [checks_requested]
7
10
8
11
pull_request :
9
- branches : [ '*' ]
12
+ branches : ['*']
10
13
11
14
jobs :
12
15
build :
50
53
token : ${{ secrets.CODECOV_TOKEN }}
51
54
fail_ci_if_error : false
52
55
verbose : true
56
+
57
+ required-checks :
58
+ name : Testing Required Checks
59
+ # This check adds a list of checks to one job to simplify adding settings to the repo.
60
+ # If a new check is added in this file, and it should be retested on entry to the merge queue,
61
+ # it needs to be added to the list below aka needs: [ existing check 1, existing check 2, new check ].
62
+ needs :
63
+ - build
64
+ - tests
65
+ if : always()
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - uses : actions/checkout@v4
69
+ - run : echo '${{ toJSON(needs) }}' | jq -e 'all(.[]; .result == "success" or .result == "skipped")'
You can’t perform that action at this time.
0 commit comments