Skip to content

Commit

Permalink
Force the use of bash even on Windows for GitHub Actions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yrodiere committed Sep 19, 2023
1 parent ec01e44 commit c628f88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c628f88

Please sign in to comment.