diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2c86582..61a3dde 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -33,9 +33,9 @@ jobs: --health-timeout 5s --health-retries 5 --health-start-period 20s - env: - TEST_SERVER_URL: 'http://localhost:${{ job.services.app.ports[3000] }}' steps: + - run: | + echo 'TEST_SERVER_URL=http://localhost:${{ job.services.app.ports[3000] }}' >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: ./.github/actions/setup-java - run: ./gradlew publishToMavenLocal test @@ -63,9 +63,9 @@ jobs: --health-timeout 5s --health-retries 5 --health-start-period 20s - env: - TEST_SERVER_URL: 'http://localhost:3000' steps: + - run: | + echo 'TEST_SERVER_URL=http://localhost:${{ job.services.app.ports[3000] }}' >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: ./.github/actions/setup-java - run: ./gradlew testUnrollAcceptanceTest @@ -149,11 +149,11 @@ jobs: - agp_version: '8.7.0' gradle_version: '8.9' java_version: '17' - env: - TEST_SERVER_URL: 'http://localhost:${{ job.services.app.ports[3000] }}' - TEST_AGP_VERSION: ${{ matrix.agp_version }} - TEST_GRADLE_VERSION: ${{ matrix.gradle_version }} steps: + - run: | + echo 'TEST_SERVER_URL=http://localhost:${{ job.services.app.ports[3000] }}' >> $GITHUB_ENV + echo 'TEST_AGP_VERSION=${{ matrix.agp_version }}' >> $GITHUB_ENV + echo 'TEST_GRADLE_VERSION=${{ matrix.gradle_version }}' >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: ./.github/actions/setup-java with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c910699..c20cd8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,9 @@ jobs: --health-timeout 5s --health-retries 5 --health-start-period 20s - env: - TEST_SERVER_URL: 'http://localhost:${{ job.services.app.ports[3000] }}' - ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }} - ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} steps: + - run: | + echo 'TEST_SERVER_URL=http://localhost:${{ job.services.app.ports[3000] }}' >> $GITHUB_ENV - uses: actions/checkout@v4 with: ref: master @@ -46,6 +44,9 @@ jobs: EOF - name: Publish artifacts run: ./release.sh + env: + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} - name: Slack Notification # we use specific version(v2.2.1) for avoid nested dependency uses: rtCamp/action-slack-notify@b24d75fe0e728a4bf9fc42ee217caa686d141ee8 # v2.2.1