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 d35ba80 commit bf779ed
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 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,16 +37,34 @@ jobs:
runs-on: ubuntu-latest
if: needs.prerequisites.outputs.runjobs
steps:
- uses: actions/checkout@v3
- name: Set up gradle
uses: spring-io/spring-gradle-build-action@v2
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin
- name: Check samples project
- 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
env:
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
VERSION: ${{ needs.prerequisites.outputs.project_version }}
GRADLE_USER_HOME: ~/.gradle
- name: Build and run unit tests
run: |
./gradlew --info --stacktrace --no-build-cache publishMavenJavaPublicationToLocalRepository
./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

0 comments on commit bf779ed

Please sign in to comment.