Skip to content

Commit

Permalink
revert: add print debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed Oct 16, 2024
1 parent 1e3de9a commit 6939ecc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: ./.github/actions/setup-java
- run: ./gradlew publishToMavenLocal test
env:
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
TEST_SERVER_URL: 'http://localhost:${{ job.services.app.ports[3000] }}'
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- uses: ./.github/actions/setup-java
- run: ./gradlew testUnrollAcceptanceTest
env:
TEST_SERVER_URL: http://localhost:3000
TEST_SERVER_URL: 'http://localhost:3000'
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
env:
TEST_AGP_VERSION: ${{ matrix.agp_version }}
TEST_GRADLE_VERSION: ${{ matrix.gradle_version }}
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
TEST_SERVER_URL: 'http://localhost:${{ job.services.app.ports[3000] }}'
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Publish artifacts
run: ./release.sh
env:
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
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 }}
- name: Slack Notification
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ project.tasks.withType(Test).configureEach {
exceptionFormat "full"
}

println("TEST_SERVER_URL: ${System.getenv("TEST_SERVER_URL")}")
println("TEST_SERVER_URL(上書き): ${System.getenv("TEST_SERVER_URL") ?: "http://localhost:3000"}")

environment([
"ANDROID_HOME": System.getenv("ANDROID_HOME"),
"TEST_AGP_VERSION": System.getenv("TEST_AGP_VERSION"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class ApiClientSpec extends Specification {
def credentials = project.objects.newInstance(Credentials)
credentials.appOwnerName.set(appOwnerName)
credentials.apiToken.set(apiToken)
def client = new HttpClient(System.getenv("TEST_SERVER_URL")) {

def endpoint = System.getenv("TEST_SERVER_URL")

println("endpoint: $endpoint")

def client = new HttpClient(endpoint) {
private final Property<String> nkProp = project.objects.property(String)
private final HttpClient.Params params = project.objects.newInstance(HttpClient.Params)

Expand Down

0 comments on commit 6939ecc

Please sign in to comment.