15
15
name : Build e2e tests
16
16
17
17
on :
18
- workflow_run :
19
- workflows :
20
- - Trigger build
21
- types :
22
- - completed
18
+ push :
19
+ branches : [ develop, release/** ]
20
+ pull_request :
21
+ branches : [ develop, release/** ]
22
+ types : [opened, synchronize, reopened, labeled]
23
23
24
24
jobs :
25
25
build :
29
29
outputs :
30
30
version : ${{ steps.version.outputs.version }}
31
31
steps :
32
- # Pinned 1.0.0 version
33
- - uses : haya14busa/action-workflow_run-status@967ed83efa565c257675ed70cfe5231f062ddd94
34
32
- uses : actions/checkout@v3
35
33
with :
36
34
repository : data-integrations/google-cloud
39
37
uses : actions/checkout@v3
40
38
with :
41
39
path : e2e
42
- ref : ${{ github.event.workflow_run.head_sha }}
43
40
- name : Cache
44
41
uses : actions/cache@v3
45
42
with :
@@ -48,10 +45,10 @@ jobs:
48
45
restore-keys : |
49
46
${{ runner.os }}-maven-${{ github.workflow }}
50
47
- name : Run required e2e tests
51
- if : ${{ github.event.workflow_run.event != 'workflow_dispatch' && github.event.workflow_run.event != 'push' }}
48
+ if : ${{ github.event_name != 'workflow_dispatch' && github.event_name != 'push' }}
52
49
run : python3 e2e/src/main/scripts/run_e2e_test.py --testRunner TestRunnerRequired.java --framework yes
53
50
- name : Run all e2e tests
54
- if : ${{ github.event.workflow_run.event == 'workflow_dispatch' || github.event.workflow_run.event == 'push' }}
51
+ if : ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
55
52
run : python3 e2e/src/main/scripts/run_e2e_test.py --framework yes
56
53
- name : Upload report
57
54
uses : actions/upload-artifact@v3
@@ -71,18 +68,10 @@ jobs:
71
68
with :
72
69
path : ./plugin/target/cucumber-reports
73
70
destination : e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}
74
- - name : github-status-action
75
- uses : Sibz/github-status-action@67af1f4042a5a790681aad83c44008ca6cfab83d
76
- if : always()
77
- with :
78
- authToken : ${{ secrets.GITHUB_TOKEN }}
79
- state : success
80
- context : Cucumber report
81
- sha : ${{ github.event.workflow_run.head_sha }}
82
71
83
72
maven-deploy :
84
- if : ${{ github.event.workflow_run.event == 'push' }}
73
+ if : ${{ github.event_name == 'push' }}
85
74
# needs: build TODO: once build is fixed
86
75
uses : ./.github/workflows/deploy.yml
87
76
with :
88
- ref : ${{ github.event.workflow_run.head_sha }}
77
+ ref : ${{ github.sha }}
0 commit comments