Skip to content

Commit 988cfad

Browse files
committed
add workflow for whitespace home folders
1 parent 49b26ad commit 988cfad

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/actions/prepare-environment/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ runs:
5252
git config --global user.name 'graalvm bot'
5353
git config --global user.email 'graalvmbot@users.noreply.github.com'
5454
echo "org.ajoberstar.grgit.auth.command.allow=true" >> gradle.properties
55+
mkdir -p ~/test with whitespaces/.m2

.github/workflows/test-native-maven-plugin.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,30 @@ jobs:
6868
with:
6969
name: maven-functional-tests-results-${{ matrix.os }}
7070
path: native-maven-plugin/build/reports/tests/
71+
72+
test-native-maven-plugin-with-whitespaces:
73+
name: "🧪 Maven: ${{ matrix.test }} on ${{ matrix.os }}"
74+
runs-on: ${{ matrix.os }}
75+
timeout-minutes: 60
76+
needs: populate-matrix
77+
strategy:
78+
fail-fast: false
79+
matrix: ${{fromJson(needs.populate-matrix.outputs.matrix)}}
80+
steps:
81+
- name: "☁️ Checkout repository"
82+
uses: actions/checkout@v4
83+
- name: "🔧 Prepare environment"
84+
uses: ./.github/actions/prepare-environment
85+
with:
86+
java-version: ${{ matrix.java-version }}
87+
github-token: ${{ secrets.GITHUB_TOKEN }}
88+
- name: "Set .m2 location to a folder with whitespaces"
89+
run: echo "MAVEN_OPTS=-Dmaven.repo.local=~/test with whitespaces/.m2" >> $GITHUB_ENV
90+
- name: "❓ Check and test the plugin"
91+
run: ./gradlew :native-maven-plugin:functionalTest --no-daemon --fail-fast --tests ${{ matrix.test }}
92+
- name: "📜 Upload unit test results"
93+
if: always()
94+
uses: actions/upload-artifact@v3
95+
with:
96+
name: maven-functional-tests-results-${{ matrix.os }}
97+
path: native-maven-plugin/build/reports/tests/

0 commit comments

Comments
 (0)