Skip to content

Commit

Permalink
Update build_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sbouchet authored Oct 19, 2023
1 parent 1fabad8 commit 10d3df6
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,37 @@ jobs:
sudo update-locale LANG=en_US.UTF-8
- name: Checkout PR branch
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

# Checkout global JBT settings.xml
- name: Checkout JBoss Tools Build CI
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: jbosstools/jbosstools-build-ci
path: build-ci

# Java JDK 11 used for maven build
# Java JDK used for maven build
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64
distribution: 'temurin'
cache: maven

# Install Maven 3.9
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f #v4.5
with:
maven-version: 3.9.4

# Try to find and apply jbosstools cache
- name: Cache local Maven repository for JBoss Tools components
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: jbosstools-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -58,11 +66,7 @@ jobs:
# Build and compile using Maven
- name: Build/Compile and run unit tests
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d #v1
with:
run: >
mvn clean verify -U -fae --settings build-ci/maven-settings.xml -DskipITests=true
-Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -ntp
run: xvfb-run -a mvn clean verify -U -fae -B --settings build-ci/maven-settings.xml -DskipITests=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -ntp

# Archive artifacts to be applied in Publish Reports workflow
- name: Archiving test artifacts
Expand Down

0 comments on commit 10d3df6

Please sign in to comment.