diff --git a/.github/workflows/paladin-PR-build.yml b/.github/workflows/paladin-PR-build.yml index 7cd57a119..90c3bf1c9 100644 --- a/.github/workflows/paladin-PR-build.yml +++ b/.github/workflows/paladin-PR-build.yml @@ -4,7 +4,6 @@ on: push: branches: [main] pull_request: - branches: [main] workflow_dispatch: jobs: @@ -41,16 +40,18 @@ jobs: java-version: 21 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' check-latest: true + cache-dependency-path: | + **/*.sum - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle - run: ./gradlew -PcomposeLogs=true --parallel build + run: ./gradlew -PcomposeLogs=true --no-daemon --parallel build # env: # CREATE_TEST_DB: 0 # github action setup a PSQL db service, so no need to create a test db again diff --git a/testinfra/build.gradle b/testinfra/build.gradle index b5e3d13bd..cf1ea8e31 100644 --- a/testinfra/build.gradle +++ b/testinfra/build.gradle @@ -25,7 +25,8 @@ task startTestInfra(type: DockerCompose, dependsOn: tasks.besuBootstrapTool) { composeFile 'docker-compose-test.yml' projectName 'paladin-testinfra' args 'up', '-d', '--wait', '--wait-timeout', 60 - } +} + task stopTestInfra(type: DockerCompose) { composeFile 'docker-compose-test.yml'