Skip to content

Commit 0b1bac9

Browse files
authored
Merge pull request #574 from cloudsufi/fix/github-actions
Fix github action, sync with develop
2 parents d4549a2 + 932de43 commit 0b1bac9

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.github/workflows/build-report.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ on:
2121
types:
2222
- completed
2323

24+
permissions:
25+
actions: read # Allows reading workflow run information
26+
statuses: write # Required if the action updates commit statuses
27+
checks: write # Required if it updates GitHub Checks API
28+
29+
2430
jobs:
2531
build:
2632
runs-on: ubuntu-latest

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
&& (github.event.action != 'labeled' || github.event.label.name == 'build')
3838
)
3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
with:
4242
ref: ${{ github.event.workflow_run.head_sha }}
4343

4444
- name: Cache
45-
uses: actions/cache@v3
45+
uses: actions/cache@v4
4646
with:
4747
path: ~/.m2/repository
4848
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}

.github/workflows/e2e.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
# Pinned 1.0.0 version
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
path: plugin
5151
submodules: 'recursive'
@@ -61,13 +61,13 @@ jobs:
6161
- '${{ matrix.module }}/**/e2e-test/**'
6262
6363
- name: Checkout e2e test repo
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565
with:
6666
repository: cdapio/cdap-e2e-tests
6767
path: e2e
6868

6969
- name: Cache
70-
uses: actions/cache@v3
70+
uses: actions/cache@v4
7171
with:
7272
path: ~/.m2/repository
7373
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}
@@ -156,24 +156,21 @@ jobs:
156156
CLOUDSQL_MYSQL_PASSWORD: ${{ steps.secrets.outputs.CLOUDSQL_MYSQL_PASSWORD }}
157157
CLOUDSQL_MYSQL_CONNECTION_NAME: ${{ steps.secrets.outputs.CLOUDSQL_MYSQL_CONNECTION_NAME }}
158158

159-
- name: Upload report
160-
uses: actions/upload-artifact@v3
161-
if: always()
162-
with:
163-
name: Cucumber report - ${{ matrix.module }}
164-
path: ./**/target/cucumber-reports
165-
166159
- name: Upload debug files
167-
uses: actions/upload-artifact@v3
160+
uses: actions/upload-artifact@v4
168161
if: always()
169162
with:
170163
name: Debug files - ${{ matrix.module }}
171164
path: ./**/target/e2e-debug
172165

173166
- name: Upload files to GCS
174-
uses: google-github-actions/upload-cloud-storage@v0
167+
uses: google-github-actions/upload-cloud-storage@v2
175168
if: always()
176169
with:
177170
path: ./plugin
178171
destination: e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}
179172
glob: '**/target/cucumber-reports/**'
173+
174+
- name: Cucumber Report URL
175+
if: always()
176+
run: echo "https://storage.googleapis.com/e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}/plugin/${{ matrix.module }}/target/cucumber-reports/advanced-reports/cucumber-html-reports/overview-features.html"

0 commit comments

Comments
 (0)