Skip to content

JBIDE-29066: remove launcher from central #88

JBIDE-29066: remove launcher from central

JBIDE-29066: remove launcher from central #88

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }} # compiles and test on Ubuntu
strategy:
matrix:
os: [ubuntu-latest]
java: ["17"]
fail-fast: false
steps:
- name: Setup Locale
run: |
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
- name: Checkout PR branch
uses: actions/checkout@v2
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
with:
repository: jbosstools/jbosstools-build-ci
path: build-ci
# Java JDK 11 used for maven build
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64
# Try to find and apply jbosstools cache
- name: Cache local Maven repository for JBoss Tools components
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: jbosstools-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
jbosstools-${{ runner.os }}-maven-
# install webkit with gtk 3 for tests
- name: Install WebKit
run: |
sudo apt-get update -y
sudo apt-get install libwebkit2gtk-4.0-37
# 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
# Archive artifacts to be applied in Publish Reports workflow
- name: Archiving test artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.java }}-test-reports
path: |
*tests/*/target/surefire-reports/
*/*tests/*/target/surefire-reports/
**/*.log