Skip to content

Commit d518316

Browse files
ci: update workflow (#70)
1 parent b96f390 commit d518316

File tree

4 files changed

+11
-33
lines changed

4 files changed

+11
-33
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: test
22
on:
3+
schedule:
4+
- cron: '18 12 * * 2'
35
push:
46
branches:
57
- main
@@ -15,10 +17,10 @@ jobs:
1517
with:
1618
fetch-depth: 0
1719

18-
- name: Unit test
20+
- name: Build and test
1921
uses: hypertrace/github-actions/gradle@main
2022
with:
21-
args: jacocoTestReport
23+
args: build jacocoTestReport
2224

2325
- name: Upload coverage to Codecov
2426
uses: codecov/codecov-action@v3
@@ -29,6 +31,7 @@ jobs:
2931

3032
- name: copy test reports
3133
uses: hypertrace/github-actions/gradle@main
34+
if: failure()
3235
with:
3336
args: copyAllReports --output-dir=/tmp/test-reports
3437

@@ -37,11 +40,11 @@ jobs:
3740
with:
3841
name: test-reports
3942
path: /tmp/test-reports
40-
if: always()
43+
if: failure()
4144

4245
- name: Publish Unit Test Results
43-
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
44-
if: always()
46+
uses: EnricoMi/publish-unit-test-result-action@v2
47+
if: (success() || failure()) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
4548
with:
4649
github_token: ${{ secrets.GITHUB_TOKEN }}
4750
files: ./**/build/test-results/**/*.xml

.github/workflows/pr-build.yml

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

platform-grpc-service-framework/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
api(platform("io.grpc:grpc-bom:1.56.0"))
1111
api("io.grpc:grpc-api")
1212
api("io.grpc:grpc-services")
13-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.0")
13+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.1")
1414
api("com.typesafe:config:1.4.2")
1515
api(project(":service-framework-spi"))
1616

@@ -19,5 +19,5 @@ dependencies {
1919

2020
implementation(project(":platform-metrics"))
2121
implementation("org.slf4j:slf4j-api:1.7.36")
22-
implementation("org.hypertrace.core.grpcutils:grpc-server-utils:0.12.0")
22+
implementation("org.hypertrace.core.grpcutils:grpc-server-utils:0.12.1")
2323
}

platform-http-service-framework/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55

66
dependencies {
77
api(project(":platform-service-framework"))
8-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.0")
8+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.1")
99
api("com.typesafe:config:1.4.2")
1010
api("javax.servlet:javax.servlet-api:4.0.1")
1111
api("com.google.inject:guice:5.1.0")

0 commit comments

Comments
 (0)