Skip to content

Commit

Permalink
Refactor Gradle workflows (#299)
Browse files Browse the repository at this point in the history
Co-authored-by: hfhbd <[email protected]>
  • Loading branch information
hfhbd and hfhbd authored Feb 4, 2024
1 parent e2dd747 commit 5d3f7d4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v3
- name: Publish
run: ./gradlew -Pversion=$version -Dorg.gradle.parallel=false --no-configuration-cache publish closeAndReleaseStagingRepository
run: ./gradlew -Pversion=$version -Dorg.gradle.parallel=false --no-configuration-cache publish :closeAndReleaseStagingRepository
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v3
with:
dependency-graph: generate-and-submit
gradle-home-cache-cleanup: true
- name: Build with Gradle
run: ./gradlew build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v3
- name: Generate Docs
run: ./gradlew dokkaHtmlMultiModule
run: ./gradlew :dokkaHtmlMultiModule
- name: Upload Docs
uses: actions/upload-pages-artifact@v3
with:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Dependency review for pull requests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:
dependency-submission:
runs-on: macos-14

permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3

dependency-review:
runs-on: ubuntu-latest
needs: dependency-submission
if: github.event_name == 'pull_request'
steps:
- name: Perform dependency review
uses: actions/dependency-review-action@v4
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UUIDTableTest {
val uuid = TestTable.insert {}[TestTable.id].value
assertNotNull(uuid)

val row = TestTable.select {
val row = TestTable.selectAll().where {
TestTable.id eq uuid
}.single()

Expand Down

0 comments on commit 5d3f7d4

Please sign in to comment.