Skip to content

Commit

Permalink
[CI] Debugging check-samples (cont..)
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Oct 5, 2023
1 parent bf779ed commit 8a296d0
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions .github/workflows/check-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
# GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
# GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
COMMIT_OWNER: ${{ github.event.pusher.name }}
COMMIT_SHA: ${{ github.sha }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
Expand Down Expand Up @@ -37,34 +37,21 @@ jobs:
runs-on: ubuntu-latest
if: needs.prerequisites.outputs.runjobs
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/setup-java@v2
- uses: actions/checkout@v3
- name: Set up gradle
uses: spring-io/spring-gradle-build-action@v2
with:
java-version: 17
distribution: temurin
- name: Setup Gradle user name
run: |
mkdir -p ~/.gradle
echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check samples project
env:
GRADLE_USER_HOME: ~/.gradle
- name: Build and run unit tests
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
VERSION: ${{ needs.prerequisites.outputs.project_version }}
run: |
./gradlew clean build -x integrationTest -x test --info --stacktrace --no-build-cache publishMavenJavaPublicationToLocalRepository
# ./gradlew clean build -x integrationTest --continue --scan -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
# - uses: actions/checkout@v3
# - name: Set up gradle
# uses: spring-io/spring-gradle-build-action@v2
# with:
# java-version: 17
# distribution: temurin
# - name: Check samples project
# env:
# LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
# VERSION: ${{ needs.prerequisites.outputs.project_version }}
# run: |
# ./gradlew --info --stacktrace --no-build-cache publishMavenJavaPublicationToLocalRepository
./gradlew --info --stacktrace --no-build-cache --continue :spring-pulsar:publishMavenJavaPublicationToLocalRepository
./gradlew --info --stacktrace --no-build-cache --continue :spring-pulsar-reactive:publishMavenJavaPublicationToLocalRepository
./gradlew --info --stacktrace --no-build-cache --continue :spring-pulsar-cache-provider:publishMavenJavaPublicationToLocalRepository
./gradlew --info --stacktrace --no-build-cache --continue :spring-pulsar-cache-provider-caffeine:publishMavenJavaPublicationToLocalRepository

0 comments on commit 8a296d0

Please sign in to comment.