Skip to content

Commit

Permalink
Separate build and test steps in CI (#468)
Browse files Browse the repository at this point in the history
I'm curious about how much time each takes separately. I'd also ideally like to trigger the sample build(s) after the "Upload MavenLocal directory" step completes, but that's not currently possible in GitHub Actions.
  • Loading branch information
drewhamilton authored Jan 14, 2025
1 parent 469a282 commit 50ca148
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,22 @@ jobs:
uses: gradle/actions/setup-gradle@v4

- name: Build
run: ./gradlew build publishToMavenLocal --stacktrace
run: ./gradlew :poko-annotations:build :poko-compiler-plugin:build :poko-gradle-plugin:build publishToMavenLocal --stacktrace
env:
ORG_GRADLE_PROJECT_personalGpgKey: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgKey }}
ORG_GRADLE_PROJECT_personalGpgPassword: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgPassword }}

- name: Upload MavenLocal directory
uses: actions/upload-artifact@v4
with:
name: MavenLocal
path: ~/.m2/repository/dev/drewhamilton/poko/
if-no-files-found: error

- name: Test
# Builds and run tests for any not-yet-built modules, i.e. the :poko-tests modules
run: ./gradlew build --stacktrace

test-with-jdk:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 50ca148

Please sign in to comment.