Skip to content

Commit

Permalink
Use wrapper in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Jun 21, 2023
1 parent e6a7889 commit 54696cc
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
with:
repository: OpenLiberty/ci.ant
path: ci.ant
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Cache maven packages
uses: actions/cache@v3
with:
Expand All @@ -59,14 +63,11 @@ jobs:
# Install dependencies
- name: Install ci.ant and ci.common
run: |
cd ./ci.ant
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
cd ../ci.common
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
cd ..
./mvnw clean install -f ci.ant --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
./mvnw clean install -f ci.common --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
# Run tests
- name: Run tests
run: ./mvnw verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"

# WINDOWS BUILD
build-windows:
Expand Down Expand Up @@ -106,14 +107,19 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# Install dependencies
- name: Install ci.ant and ci.common
run: |
cd C:/ci.ant
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
cd C:/ci.common
mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
# Install ci.ant
- name: Run tests
working-directory: C:/ci.ant
run: .\mvnw.cmd -V clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
# Install ci.common
- name: Run tests
working-directory: C:/ci.common
run: .\mvnw.cmd -V clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
# Run tests
- name: Run tests
working-directory: C:/ci.maven
run: .\mvnw.cmd verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"

0 comments on commit 54696cc

Please sign in to comment.