Skip to content

Commit

Permalink
Merge pull request #591 from aws-observability/update-nightly-build
Browse files Browse the repository at this point in the history
NightlyBuild Updates to include contract tests and e2e tests
  • Loading branch information
PaurushGarg authored Nov 17, 2023
2 parents a90e3cb + c9b7204 commit a1bf589
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/nightly-upstream-snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
outputs:
release-candidate-image: ${{ steps.imageNameOutput.outputs.imageName }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -36,10 +38,13 @@ jobs:
with:
registry: public.ecr.aws

- name: Pull base image of Contract Tests Sample Apps
run: docker pull public.ecr.aws/docker/library/amazoncorretto:17-alpine

- name: Build snapshot with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace -PenableCoverage=true -PtestUpstreamSnapshots=true
arguments: build contractTests --stacktrace -PenableCoverage=true -PtestUpstreamSnapshots=true -PlocalDocker=true
env:
PUBLISH_USERNAME: ${{ secrets.PUBLISH_USERNAME }}
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
Expand Down Expand Up @@ -92,12 +97,25 @@ jobs:
tags: |
${{ env.IMAGE_TAG }}
- name: Set image name to output
id: imageNameOutput
run: echo "imageName=${{ env.IMAGE_NAME }}" >> "$GITHUB_OUTPUT"

- name: Upload to GitHub Actions
uses: actions/upload-artifact@v3
with:
name: aws-opentelemetry-agent.jar
path: otelagent/build/libs/aws-opentelemetry-agent-*.jar

e2e-test:
needs: build
uses: ./.github/workflows/appsignals-e2e-eks-test.yml
secrets: inherit
with:
test-cluster-name: "e2e-adot-test"
appsignals-adot-image-name: ${{ needs.build.outputs.release-candidate-image }}
caller-workflow-name: 'nightly-upstream-snapshot-build'

publish-build-status:
needs: [build]
if: ${{ always() }}
Expand Down

0 comments on commit a1bf589

Please sign in to comment.