Skip to content

Commit

Permalink
Merge pull request #107 from kaleido-io/gradle-version
Browse files Browse the repository at this point in the history
[github-actions]: Hardcode gradle version and cache deps
  • Loading branch information
dwertent authored Sep 16, 2024
2 parents 44fff74 + aae25b1 commit 35a7ab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/paladin-PR-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion testinfra/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 35a7ab4

Please sign in to comment.