Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate build and test steps in CI #468

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading