Skip to content

Commit 85fb9c0

Browse files
marcusdacoregiojzheaux
authored andcommitted
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
1 parent f874a12 commit 85fb9c0

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
with:
7474
name: errors
7575
path: job-${{ github.job }}.txt
76-
check_windows:
77-
name: Check Windows
76+
build_windows:
77+
name: Build Windows
7878
needs: [prerequisites]
7979
runs-on: windows-latest
8080
if: needs.prerequisites.outputs.runjobs
@@ -89,12 +89,23 @@ jobs:
8989
with:
9090
path: ~/.gradle/caches
9191
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
92-
- name: Check with Gradle
92+
- name: Build with Gradle
9393
run: |
9494
set GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
9595
set GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
9696
set GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
97-
./gradlew check -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
97+
./gradlew clean build --continue -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
98+
- name: Track error step
99+
uses: spring-projects/track-build-errors-action@v1
100+
if: ${{ failure() }}
101+
with:
102+
job-name: ${{ github.job }}
103+
- name: Export errors file
104+
uses: actions/upload-artifact@v2
105+
if: ${{ failure() }}
106+
with:
107+
name: errors
108+
path: job-${{ github.job }}.txt
98109
snapshot_tests:
99110
name: Test against snapshots
100111
needs: [prerequisites]
@@ -165,7 +176,7 @@ jobs:
165176
path: job-${{ github.job }}.txt
166177
deploy_artifacts:
167178
name: Deploy Artifacts
168-
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
179+
needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
169180
runs-on: ubuntu-latest
170181
steps:
171182
- uses: actions/checkout@v2
@@ -203,7 +214,7 @@ jobs:
203214
path: job-${{ github.job }}.txt
204215
deploy_docs:
205216
name: Deploy Docs
206-
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
217+
needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
207218
runs-on: ubuntu-latest
208219
steps:
209220
- uses: actions/checkout@v2
@@ -234,7 +245,7 @@ jobs:
234245
path: job-${{ github.job }}.txt
235246
deploy_schema:
236247
name: Deploy Schema
237-
needs: [build_jdk_11, snapshot_tests, sonar_analysis]
248+
needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis]
238249
runs-on: ubuntu-latest
239250
steps:
240251
- uses: actions/checkout@v2
@@ -265,7 +276,7 @@ jobs:
265276
path: job-${{ github.job }}.txt
266277
notify_result:
267278
name: Check for failures
268-
needs: [build_jdk_11, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema]
279+
needs: [build_jdk_11, build_windows, snapshot_tests, sonar_analysis, deploy_artifacts, deploy_docs, deploy_schema]
269280
if: always()
270281
runs-on: ubuntu-latest
271282
steps:

0 commit comments

Comments
 (0)