2323 workflow_dispatch :
2424
2525jobs :
26- modules :
27- runs-on : ubuntu-latest
26+ build :
27+ runs-on : k8s-runner-e2e
2828 # We allow builds:
2929 # 1) When triggered manually
3030 # 2) When it's a merge into a branch
@@ -38,44 +38,10 @@ jobs:
3838 || (contains(github.event.pull_request.labels.*.name, 'build')
3939 && (github.event.action != 'labeled' || github.event.label.name == 'build')
4040 )
41- steps :
42- - uses : actions/checkout@v2.3.4
43- if : github.event_name != 'workflow_dispatch'
44- with :
45- path : plugin
46- - uses : dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
47- if : github.event_name != 'workflow_dispatch'
48- id : filter
49- with :
50- working-directory : plugin
51- filters : |
52- mssql-plugins:
53- - 'mssql-plugins/**'
54- mysql-plugins:
55- - 'mysql-plugins/**'
56- oracle-plugins:
57- - 'oracle-plugins/**'
58- postgresql-plugins:
59- - 'postgresql-plugins/**'
60- - name : Set modules list
61- id : sml
62- run : |
63- if [ ${{ github.event_name }} != 'workflow_dispatch' ]; then
64- echo "::set-output name=matrix::$( jq '.' --compact-output <<< '${{ steps.filter.outputs.changes }}')"
65- else
66- echo "::set-output name=matrix::['mssql-plugins','mysql-plugins','oracle-plugins','postgresql-plugins']"
67- fi
68- shell : bash
69- outputs :
70- matrix : ${{ steps.sml.outputs.matrix }}
71-
72- build :
73- needs : modules
74- runs-on : k8s-runner-e2e
75- if : needs.modules.outputs.matrix != '[]' && needs.modules.outputs.matrix != ''
7641 strategy :
7742 matrix :
78- module : ${{ fromJson(needs.modules.outputs.matrix) }}
43+ module : [mysql-plugin, postgresql-plugin]
44+ fail-fast : false
7945 steps :
8046 # Pinned 1.0.0 version
8147 - uses : actions/checkout@v2.3.4
@@ -112,13 +78,13 @@ jobs:
11278 uses : actions/upload-artifact@v2.2.4
11379 if : always()
11480 with :
115- name : Cucumber report
81+ name : Cucumber report - ${{ matrix.module }}
11682 path : ./**/target/cucumber-reports
11783 - name : Upload debug files
11884 uses : actions/upload-artifact@v2.2.4
11985 if : always()
12086 with :
121- name : Debug files
87+ name : Debug files - ${{ matrix.module }}
12288 path : ./**/target/e2e-debug
12389 - name : Upload files to GCS
12490 uses : google-github-actions/upload-cloud-storage@v0
0 commit comments