Skip to content

Commit 1846f82

Browse files
author
psainics
committed
Fix github runner version
1 parent f833826 commit 1846f82

5 files changed

Lines changed: 75 additions & 68 deletions

File tree

.github/workflows/build-report.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright © 2025 Cask Data, Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
3+
# use this file except in compliance with the License. You may obtain a copy of
4+
# the License at
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
# Unless required by applicable law or agreed to in writing, software
7+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
9+
# License for the specific language governing permissions and limitations under
10+
# the License.
11+
12+
# This workflow will build a Java project with Maven
13+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
14+
# Note: Any changes to this workflow would be used only after merging into develop
15+
name: Build Unit Tests Report
16+
17+
on:
18+
workflow_run:
19+
workflows:
20+
- Build with unit tests
21+
types:
22+
- completed
23+
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+
jobs:
30+
build:
31+
runs-on: ubuntu-latest
32+
33+
if: ${{ github.event.workflow_run.conclusion != 'skipped' }}
34+
35+
steps:
36+
# Pinned 1.0.0 version
37+
- uses: marocchino/action-workflow_run-status@54b6e87d6cb552fc5f36dbe9a722a6048725917a
38+
39+
- name: Download artifact
40+
uses: actions/download-artifact@v4
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
run-id: ${{ github.event.workflow_run.id }}
44+
path: artifacts/
45+
46+
- name: Surefire Report
47+
# Pinned 3.5.2 version
48+
uses: mikepenz/action-junit-report@16a9560bd02f11e7e3bf6b3e2ef6bba6c9d07c32
49+
if: always()
50+
with:
51+
report_paths: '**/target/surefire-reports/TEST-*.xml'
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
detailed_summary: true
54+
commit: ${{ github.event.workflow_run.head_sha }}
55+
check_name: Build Test Report

.github/workflows/build.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
name: Build with unit tests
1616

1717
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]
2323

2424
jobs:
2525
build:
@@ -29,14 +29,12 @@ jobs:
2929

3030
steps:
3131
# Pinned 1.0.0 version
32-
- uses: haya14busa/action-workflow_run-status@967ed83efa565c257675ed70cfe5231f062ddd94
33-
34-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3533
with:
3634
ref: ${{ github.event.workflow_run.head_sha }}
3735

3836
- name: Cache
39-
uses: actions/cache@v3
37+
uses: actions/cache@v4
4038
with:
4139
path: ~/.m2/repository
4240
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}
@@ -46,7 +44,7 @@ jobs:
4644
- name: Build with Maven
4745
run: mvn clean test -fae -T 2 -B -V -DcloudBuild -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
4846
- name: Archive build artifacts
49-
uses: actions/upload-artifact@v3
47+
uses: actions/upload-artifact@v4
5048
if: always()
5149
with:
5250
name: Build debug files

.github/workflows/e2e.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
name: Build e2e tests
1616

1717
on:
18-
workflow_run:
19-
workflows:
20-
- Trigger build
21-
types:
22-
- completed
18+
push:
19+
branches: [ develop ]
20+
pull_request:
21+
branches: [ develop]
22+
types: [opened, synchronize, reopened, labeled]
23+
workflow_dispatch:
2324

2425
jobs:
2526
build:
@@ -28,20 +29,19 @@ jobs:
2829
if: ${{ github.event.workflow_run.conclusion != 'skipped' }}
2930

3031
steps:
31-
- uses: haya14busa/action-workflow_run-status@967ed83efa565c257675ed70cfe5231f062ddd94
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
with:
3434
path: plugin
3535
ref: ${{ github.event.workflow_run.head_sha }}
3636

3737
- name: Checkout e2e test repo
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939
with:
4040
repository: cdapio/cdap-e2e-tests
4141
path: e2e
4242

4343
- name: Cache
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: ~/.m2/repository
4747
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}
@@ -65,14 +65,14 @@ jobs:
6565
SUCCESSFACTORS_PASSWORD: ${{ steps.secrets.outputs.SUCCESSFACTORS_PASSWORD }}
6666

6767
- name: Upload report
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
if: always()
7070
with:
7171
name: Cucumber report
7272
path: ./plugin/target/cucumber-reports
7373

7474
- name: Upload debug files
75-
uses: actions/upload-artifact@v3
75+
uses: actions/upload-artifact@v4
7676
if: always()
7777
with:
7878
name: Debug files

.github/workflows/trigger.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@
684684
<dependency>
685685
<groupId>io.cdap.tests.e2e</groupId>
686686
<artifactId>cdap-e2e-framework</artifactId>
687-
<version>0.4.0-SNAPSHOT</version>
687+
<version>0.5.0-SNAPSHOT</version>
688688
<scope>test</scope>
689689
</dependency>
690690
</dependencies>

0 commit comments

Comments
 (0)