|
1 | 1 | name: Java Agent Main Build |
2 | 2 | on: |
| 3 | + pull_request: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + - "release/v*" |
3 | 7 | push: |
4 | 8 | branches: |
5 | 9 | - main |
@@ -184,66 +188,66 @@ jobs: |
184 | 188 | image_tag: ${{ github.sha }} |
185 | 189 | caller-workflow-name: 'main-build' |
186 | 190 |
|
187 | | - # AppSignals Contract Tests |
188 | | - contract-tests: |
189 | | - runs-on: ubuntu-latest |
190 | | - needs: build |
191 | | - steps: |
192 | | - - uses: actions/checkout@v4 |
193 | | - with: |
194 | | - fetch-depth: 0 |
195 | | - - uses: actions/setup-java@v4 |
196 | | - with: |
197 | | - java-version: 23 |
198 | | - distribution: 'temurin' |
199 | | - - uses: gradle/wrapper-validation-action@v1 |
200 | | - |
201 | | - - name: Configure AWS Credentials |
202 | | - uses: aws-actions/configure-aws-credentials@v4 |
203 | | - with: |
204 | | - role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }} |
205 | | - aws-region: ${{ env.AWS_DEFAULT_REGION }} |
206 | | - |
207 | | - - name: Log in to AWS ECR |
208 | | - uses: docker/login-action@v3 |
209 | | - with: |
210 | | - registry: public.ecr.aws |
211 | | - |
212 | | - # cache local patch outputs |
213 | | - - name: Cache local Maven repository |
214 | | - id: cache-local-maven-repo |
215 | | - uses: actions/cache@v3 |
216 | | - with: |
217 | | - path: | |
218 | | - ~/.m2/repository/io/opentelemetry/ |
219 | | - key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }} |
220 | | - |
221 | | - - name: Pull base image of Contract Tests Sample Apps |
222 | | - run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine |
223 | | - |
224 | | - - name: Build snapshot with Gradle |
225 | | - uses: gradle/gradle-build-action@v3 |
226 | | - with: |
227 | | - arguments: contractTests -PlocalDocker=true |
228 | | - |
229 | | - application-signals-e2e-test: |
230 | | - needs: [build] |
231 | | - uses: ./.github/workflows/application-signals-e2e-test.yml |
232 | | - secrets: inherit |
233 | | - with: |
234 | | - adot-image-name: ${{ needs.build.outputs.staging-image }} |
235 | | - |
236 | | - publish-build-status: |
237 | | - needs: [ build, contract-tests ] |
238 | | - if: ${{ always() }} |
239 | | - uses: ./.github/workflows/publish-status.yml |
240 | | - with: |
241 | | - namespace: 'ADOT/GitHubActions' |
242 | | - repository: ${{ github.repository }} |
243 | | - branch: ${{ github.ref_name }} |
244 | | - workflow: main-build |
245 | | - success: ${{ needs.build.result == 'success' && |
246 | | - needs.contract-tests.result == 'success' }} |
247 | | - region: us-east-1 |
248 | | - secrets: |
249 | | - roleArn: ${{ secrets.METRICS_ROLE_ARN }} |
| 191 | +# # AppSignals Contract Tests |
| 192 | +# contract-tests: |
| 193 | +# runs-on: ubuntu-latest |
| 194 | +# needs: build |
| 195 | +# steps: |
| 196 | +# - uses: actions/checkout@v4 |
| 197 | +# with: |
| 198 | +# fetch-depth: 0 |
| 199 | +# - uses: actions/setup-java@v4 |
| 200 | +# with: |
| 201 | +# java-version: 23 |
| 202 | +# distribution: 'temurin' |
| 203 | +# - uses: gradle/wrapper-validation-action@v1 |
| 204 | +# |
| 205 | +# - name: Configure AWS Credentials |
| 206 | +# uses: aws-actions/configure-aws-credentials@v4 |
| 207 | +# with: |
| 208 | +# role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }} |
| 209 | +# aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 210 | +# |
| 211 | +# - name: Log in to AWS ECR |
| 212 | +# uses: docker/login-action@v3 |
| 213 | +# with: |
| 214 | +# registry: public.ecr.aws |
| 215 | +# |
| 216 | +# # cache local patch outputs |
| 217 | +# - name: Cache local Maven repository |
| 218 | +# id: cache-local-maven-repo |
| 219 | +# uses: actions/cache@v3 |
| 220 | +# with: |
| 221 | +# path: | |
| 222 | +# ~/.m2/repository/io/opentelemetry/ |
| 223 | +# key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }} |
| 224 | +# |
| 225 | +# - name: Pull base image of Contract Tests Sample Apps |
| 226 | +# run: docker pull public.ecr.aws/docker/library/amazoncorretto:23-alpine |
| 227 | +# |
| 228 | +# - name: Build snapshot with Gradle |
| 229 | +# uses: gradle/gradle-build-action@v3 |
| 230 | +# with: |
| 231 | +# arguments: contractTests -PlocalDocker=true |
| 232 | +# |
| 233 | +# application-signals-e2e-test: |
| 234 | +# needs: [build] |
| 235 | +# uses: ./.github/workflows/application-signals-e2e-test.yml |
| 236 | +# secrets: inherit |
| 237 | +# with: |
| 238 | +# adot-image-name: ${{ needs.build.outputs.staging-image }} |
| 239 | +# |
| 240 | +# publish-build-status: |
| 241 | +# needs: [ build, contract-tests ] |
| 242 | +# if: ${{ always() }} |
| 243 | +# uses: ./.github/workflows/publish-status.yml |
| 244 | +# with: |
| 245 | +# namespace: 'ADOT/GitHubActions' |
| 246 | +# repository: ${{ github.repository }} |
| 247 | +# branch: ${{ github.ref_name }} |
| 248 | +# workflow: main-build |
| 249 | +# success: ${{ needs.build.result == 'success' && |
| 250 | +# needs.contract-tests.result == 'success' }} |
| 251 | +# region: us-east-1 |
| 252 | +# secrets: |
| 253 | +# roleArn: ${{ secrets.METRICS_ROLE_ARN }} |
0 commit comments