Skip to content

Commit

Permalink
Separate step to publish locally in test-ubuntu and test-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmans0n committed Oct 29, 2024
1 parent fca3225 commit 45fbbcb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ jobs:
java-version: '17'
check-latest: true

- name: Publish Annotations to Maven Local
run: ./gradlew :annotations:publishToMavenLocal

- name: Test on Ubuntu
run: ./gradlew :annotations:publishToMavenLocal assemble test --no-build-cache --no-daemon --stacktrace -Doverride_kotlin=${{ matrix.kotlin-version }}
run: ./gradlew assemble test --no-build-cache --no-daemon --stacktrace -Doverride_kotlin=${{ matrix.kotlin-version }}

- name: Upload Test Results
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
Expand All @@ -68,14 +71,17 @@ jobs:
java-version: '17'
check-latest: true

- name: Publish Annotations to Maven Local
run: ./gradlew.bat :annotations:publishToMavenLocal

# On Windows the command looks a little bit different. Notice that we use the .bat file and
# quotes for the Kotlin version, because dots "." in the Kotlin version and parameter name
# cause issues.
#
# Expressions in Github actions are limited. If there would be an if expression, then we
# wouldn't need to duplicate the next step and depending on the OS enable / disable them.
- name: Test on Windows
run: ./gradlew.bat :annotations:publishToMavenLocal assemble test --no-build-cache --no-daemon --stacktrace -Doverride_config-fullTestRun=false -Doverride_config-includeKspTests=false
run: ./gradlew.bat assemble test --no-build-cache --no-daemon --stacktrace -Doverride_config-fullTestRun=false -Doverride_config-includeKspTests=false

- name: Upload Test Results
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
Expand Down

0 comments on commit 45fbbcb

Please sign in to comment.