Commit 787c5b0 1 parent 4611553 commit 787c5b0 Copy full SHA for 787c5b0
File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 31
31
pattern : |
32
32
*.sh
33
33
step-*
34
+
35
+ test_gitlab_generator_script_define_cases :
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - name : Find test cases
40
+ run : |
41
+ make -sC gitlab list_test_instances >> "$GITHUB_OUTPUT"
42
+
43
+ test_gitlab_generator_script :
44
+ needs : test_gitlab_generator_script_define_cases
45
+ strategy :
46
+ matrix :
47
+ instance : ${{ fromJSON(needs.test_gitlab_generator_script_define_cases.outputs.instances) }}
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - run : |
52
+ make -C gitlab golden-diff -e instance=${{ matrix.instance }}
Original file line number Diff line number Diff line change @@ -35,3 +35,8 @@ gen-golden-all: $(test_instances)
35
35
.PHONY : $(test_instances )
36
36
$(test_instances ) :
37
37
$(MAKE ) $(recursive_target ) -e instance=$(basename $(@F ) )
38
+
39
+ .PHONY : list_test_instances
40
+ list_test_instances : JSONNET_ENTRYPOINT=jsonnet
41
+ list_test_instances :
42
+ $(JSONNET_DOCKER ) --ext-str instances=" $( test_instances) " -e ' std.split(std.extVar("instances"), " ")'
You can’t perform that action at this time.
0 commit comments