diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..ab7371960a7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Build Platform UI +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # required for jgit timestamp provider to work + - uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + uses: GabrielBB/xvfb-action@v1 + with: + run: >- + mvn + --batch-mode + --global-toolchains ${{ github.workspace }}/.github/workflows/toolchains.xml + -Pbuild-individual-bundles + -Pbree-libs + -Papi-check + -Dmaven.test.failure.ignore=true + -Dcompare-version-with-baselines.skip=false + -Dproject.build.sourceEncoding=UTF-8 + -Dorg.slf4j.simpleLogger.showDateTime=true + -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS + -DtrimStackTrace=false + clean verify + - name: Upload Test Results + uses: actions/upload-artifact@v3 + with: + name: test-results + if-no-files-found: error + path: '**/target/surefire-reports/*.xml' diff --git a/.github/workflows/toolchains.xml b/.github/workflows/toolchains.xml new file mode 100644 index 00000000000..7ed2bfc9dfc --- /dev/null +++ b/.github/workflows/toolchains.xml @@ -0,0 +1,35 @@ + + + + jdk + + JavaSE-17 + 17 + + + ${env.JAVA_HOME_17_X64} + + + + jdk + + JavaSE-11 + 11 + + + ${env.JAVA_HOME_11_X64} + + + + jdk + + JavaSE-1.8 + 1.8 + + + ${env.JAVA_HOME_8_X64} + + + \ No newline at end of file