Skip to content

Commit 7530b40

Browse files
committed
Test workflows.
1 parent 8804b7a commit 7530b40

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.github/workflows/docker-build-smoke-tests-fake-backend.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Smoke test build
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
push:
47
branches:
58
- main
@@ -25,6 +28,17 @@ jobs:
2528
with:
2629
java-version: 17
2730
distribution: 'temurin'
31+
- name: Cache local Maven repository
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
~/.m2/repository/io/opentelemetry/
36+
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
37+
- name: Publish patched dependencies to maven local
38+
uses: ./.github/actions/patch-dependencies
39+
with:
40+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
41+
gpg_password: ${{ secrets.GPG_PASSPHRASE }}
2842
- uses: gradle/wrapper-validation-action@v1
2943
- name: Configure AWS Credentials
3044
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/main-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Java Agent Main Build
22
on:
3-
pull_request:
4-
branches:
5-
- main
63
push:
74
branches:
85
- main

.github/workflows/nightly-upstream-snapshot-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Nightly Snapshot Build
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
schedule:
47
- cron: "21 3 * * *"
58
workflow_dispatch:
@@ -32,6 +35,20 @@ jobs:
3235
java-version: 17
3336
distribution: 'temurin'
3437

38+
# cache local patch outputs
39+
- name: Cache local Maven repository
40+
uses: actions/cache@v3
41+
with:
42+
path: |
43+
~/.m2/repository/io/opentelemetry/
44+
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
45+
46+
- name: Publish patched dependencies to maven local
47+
uses: ./.github/actions/patch-dependencies
48+
with:
49+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
50+
gpg_password: ${{ secrets.GPG_PASSPHRASE }}
51+
3552
- uses: gradle/wrapper-validation-action@v1
3653

3754
- name: Configure AWS Credentials

.github/workflows/release-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Release Build
22
on:
3-
pull_request:
4-
branches:
5-
- main
63
workflow_dispatch:
74
inputs:
85
version:

0 commit comments

Comments
 (0)