Skip to content

Commit 3cd7815

Browse files
committed
Sync github action with develop branch
1 parent 7dd9a3f commit 3cd7815

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

.github/workflows/build-report.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ 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+
2429
jobs:
2530
build:
2631
runs-on: ubuntu-latest

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
)
3939
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
with:
4343
ref: ${{ github.event.workflow_run.head_sha }}
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: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
push:
1919
branches: [ develop, release/* ]
2020
pull_request:
21-
branches: [ develop, release/* ]
21+
branches: [ develop, release/*]
2222
types: [opened, synchronize, reopened, labeled]
2323
workflow_dispatch:
2424

@@ -40,11 +40,11 @@ jobs:
4040
)
4141
strategy:
4242
matrix:
43-
tests: [bigquery, common, gcs, pubsub, spanner, gcscreate, gcsdelete, gcsmove, bigqueryexecute, gcscopy]
43+
tests: [bigquery, common, gcs, pubsub, spanner, gcscreate, gcsdelete, gcsmove, bigqueryexecute, gcscopy, datastore, bigtable]
4444
fail-fast: false
4545
steps:
4646
# Pinned 1.0.0 version
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
with:
4949
path: plugin
5050
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
@@ -57,13 +57,12 @@ jobs:
5757
e2e-test:
5858
- '**/e2e-test/**'
5959
- name: Checkout e2e test repo
60-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
6161
with:
6262
repository: cdapio/cdap-e2e-tests
6363
path: e2e
64-
ref: release/6.10
6564
- name: Cache
66-
uses: actions/cache@v3
65+
uses: actions/cache@v4
6766
with:
6867
path: ~/.m2/repository
6968
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}
@@ -75,21 +74,18 @@ jobs:
7574
- name: Run all e2e tests
7675
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || steps.filter.outputs.e2e-test == 'true'
7776
run: python3 e2e/src/main/scripts/run_e2e_test.py --testRunner **/${{ matrix.tests }}/**/TestRunner.java
78-
- name: Upload report
79-
uses: actions/upload-artifact@v3
80-
if: always()
81-
with:
82-
name: Cucumber report - ${{ matrix.tests }}
83-
path: ./plugin/target/cucumber-reports
8477
- name: Upload debug files
85-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
8679
if: always()
8780
with:
8881
name: Debug files - ${{ matrix.tests }}
8982
path: ./**/target/e2e-debug
9083
- name: Upload files to GCS
91-
uses: google-github-actions/upload-cloud-storage@v0
84+
uses: google-github-actions/upload-cloud-storage@v2
9285
if: always()
9386
with:
9487
path: ./plugin/target/cucumber-reports
95-
destination: e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}
88+
destination: e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}/${{ matrix.tests }}
89+
- name: Cucumber Report URL
90+
if: always()
91+
run: echo "https://storage.googleapis.com/e2e-tests-cucumber-reports/${{ github.event.repository.name }}/${{ github.ref }}/${{ matrix.tests }}/cucumber-reports/advanced-reports/cucumber-html-reports/overview-features.html"

.github/workflows/tag-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
CDAP_GPG_PRIVATE_KEY:cdapio-github-builds/CDAP_GPG_PRIVATE_KEY
3333
3434
- name: Checkout Repository
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636
with:
3737
ref: ${{ inputs.ref }}
3838

3939
- name: Cache
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: ~/.m2/repository
4343
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}

0 commit comments

Comments
 (0)