Skip to content

Commit 0ae242f

Browse files
committed
Fix yaml for windows
1 parent 8ccb063 commit 0ae242f

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/maven.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,25 @@ jobs:
9292
# Checkout repos
9393
- name: Checkout ci.maven
9494
uses: actions/checkout@v3
95+
with:
96+
repository: OpenLiberty/ci.maven
97+
path: ci.maven
9598
- name: Setup Java ${{ matrix.java }}
9699
uses: actions/setup-java@v3
97100
with:
98101
distribution: 'temurin'
99102
java-version: ${{ matrix.java }}
100103
cache: 'maven'
101-
# Move and cloning to C: drive for Windows for more disk space
102-
- name: Clone ci.ant, ci.common, ci.maven repos to C drive
103-
run: |
104-
cp -r D:/a/ci.maven/ci.maven C:/ci.maven
105-
git clone https://github.com/OpenLiberty/ci.common.git C:/ci.common
106-
git clone https://github.com/OpenLiberty/ci.ant.git C:/ci.ant
104+
- name: Checkout ci.common
105+
uses: actions/checkout@v3
106+
with:
107+
repository: OpenLiberty/ci.common
108+
path: ci.common
109+
- name: Checkout ci.ant
110+
uses: actions/checkout@v3
111+
with:
112+
repository: OpenLiberty/ci.ant
113+
path: ci.ant
107114
- name: Set up Maven
108115
uses: stCarolas/setup-maven@v4.5
109116
with:
@@ -119,6 +126,7 @@ jobs:
119126
# Run tests that require a minimum of Java 17 or later
120127
- name: Run tests that require a minimum of Java 17 or later
121128
if: ${{ matrix.java == '17' || matrix.java == '21'}}
129+
working-directory: C:/ci.maven
122130
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogsOnFailures"=true -D"invoker.test"="*setup*,*springboot-3-*,*compile-jsp-source-17-*" -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
123131
# Run tests
124132
- name: Run tests

0 commit comments

Comments
 (0)