From c628f8877b4a473d2918c9a41a7b3c67e512b8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Tue, 19 Sep 2023 13:06:18 +0200 Subject: [PATCH] Force the use of bash even on Windows for GitHub Actions Powershell would not support escaping newlines, and would interpret dots as some object-oriented field accessor. None of this nonsense, let's just use bash. --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe29d51dafc..91b7874ae1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,20 +82,26 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Set up Maven + shell: bash run: ./mvnw -v - name: Docker cleanup + shell: bash run: ./ci/docker-cleanup.sh - name: Building code and running unit tests and basic checks + shell: bash run: ./mvnw $MAVEN_ARGS install -Pjqassistant -Pdist -Pci-sources-check -DskipITs - name: Running integration tests in the default environment + shell: bash run: | ./mvnw $MAVEN_ARGS verify \ -DskipSurefireTests -Pskip-checks -Pci-rebuild \ ${{ github.event.pull_request.base.ref && format('-Dincremental -Dgib.referenceBranch=refs/remotes/origin/{0}', github.event.pull_request.base.ref) || '' }} - name: Docker cleanup if: always() + shell: bash run: ./ci/docker-cleanup.sh - name: Omit produced artifacts from build cache + shell: bash run: rm -r ~/.m2/repository/org/hibernate/search - name: Upload build reports (if build failed) uses: actions/upload-artifact@v3