Skip to content

Commit

Permalink
feat: adapt testcontainers pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thongdanghoang authored and Thống committed Feb 14, 2025
1 parent 523af82 commit 51850de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
${{ runner.os }}-gradle-
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build with Gradle
timeout-minutes: 15
run: |
./gradlew build --scan
./gradlew build --scan -Dlogging.level.root=DEBUG -Dlogging.level.org.springframework=DEBUG
working-directory: ${{ matrix.module }}

build-frontend:
Expand All @@ -62,4 +68,4 @@ jobs:
working-directory: sep490-frontend
- run: npm run build
timeout-minutes: 5
working-directory: sep490-frontend
working-directory: sep490-frontend
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ public abstract class TestcontainersConfigs {
static void beforeAll() {
postgres.start();
idP.withExposedPorts(8180)
.waitingFor(Wait.forHttp("/realms/greenbuildings/.well-known/openid-configuration").forStatusCode(200))
.waitingFor(Wait.forHttp("/realms/greenbuildings/.well-known/openid-configuration")
.forStatusCode(200)
.withReadTimeout(java.time.Duration.ofMinutes(5))
.withStartupTimeout(java.time.Duration.ofMinutes(5))
)
.start();
}

Expand Down

0 comments on commit 51850de

Please sign in to comment.