From 85fb9c09a5f2c2fc94cbf852b264ad148198c69f Mon Sep 17 00:00:00 2001 From: Marcus Hert da Coregio Date: Fri, 14 May 2021 14:13:18 -0300 Subject: [PATCH] Update Check Windows CI Workflow - Add slack integration for error reporting - Rename from check_windows to build_windows - Change the build command to match the one in build_jdk_11 - Add build_windows to the needs of deployment and failure check jobs Issue gh-9727 --- .../continuous-integration-workflow.yml | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 4a5996451d..560828f4de 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -73,8 +73,8 @@ jobs: with: name: errors path: job-${{ github.job }}.txt - check_windows: - name: Check Windows + build_windows: + name: Build Windows needs: [prerequisites] runs-on: windows-latest if: needs.prerequisites.outputs.runjobs @@ -89,12 +89,23 @@ jobs: with: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - - name: Check with Gradle + - name: Build with Gradle run: | set GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER" set GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD" set GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY" - ./gradlew check -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" + ./gradlew clean build --continue -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" + - name: Track error step + uses: spring-projects/track-build-errors-action@v1 + if: ${{ failure() }} + with: + job-name: ${{ github.job }} + - name: Export errors file + uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: errors + path: job-${{ github.job }}.txt snapshot_tests: name: Test against snapshots needs: [prerequisites] @@ -165,7 +176,7 @@ jobs: path: job-${{ github.job }}.txt deploy_artifacts: name: Deploy Artifacts - needs: [build_jdk_11, snapshot_tests, sonar_analysis] + needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -203,7 +214,7 @@ jobs: path: job-${{ github.job }}.txt deploy_docs: name: Deploy Docs - needs: [build_jdk_11, snapshot_tests, sonar_analysis] + needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -234,7 +245,7 @@ jobs: path: job-${{ github.job }}.txt deploy_schema: name: Deploy Schema - needs: [build_jdk_11, snapshot_tests, sonar_analysis] + needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -265,7 +276,7 @@ jobs: path: job-${{ github.job }}.txt notify_result: name: Check for failures - needs: [build_jdk_11, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema] + needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema] if: always() runs-on: ubuntu-latest steps: