Skip to content

Commit

Permalink
add CI job for building with ee-namespace-interop profile (enabling s…
Browse files Browse the repository at this point in the history
…ystem property org.wildfly.ee.namespace.interop) (#563)
  • Loading branch information
chengfang authored Sep 22, 2022
1 parent ed08b41 commit 06fa278
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu-20.04, windows-latest]
jdk: [8, 11, 17]
impl: [hotspot, openj9]
impl: [hotspot]
steps:
- name: Configure runner - Linux
if: contains(matrix.os, 'ubuntu')
Expand All @@ -38,10 +38,10 @@ jobs:
impl: ${{ matrix.impl }}
- name: Run Tests with JDK 8
if: ${{ matrix.jdk == '8' }}
run: mvn -ntp -U -B -fae clean install -pl javax,. --also-make
run: mvn -ntp -U -B -fae clean verify -pl javax,. --also-make
- name: Run Tests with JDK 11 or above
if: ${{ matrix.jdk != '8' }}
run: mvn -ntp -U -B -fae clean install
run: mvn -ntp -U -B -fae clean verify
- uses: actions/upload-artifact@v2
if: failure()
with:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/interop-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: ee-namespace-interop profile

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build-test-matrix:
name: ${{ matrix.impl}}-${{ matrix.jdk }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest]
jdk: [8, 11, 17]
impl: [openj9]
steps:
- name: Configure runner - Linux
if: contains(matrix.os, 'ubuntu')
run: |
sudo bash -c "echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4' > /etc/hosts"
sudo bash -c "echo '::1 localhost localhost.localdomain localhost6 localhost6.localdomain6' >> /etc/hosts"
- name: Configure Runner - Windows
if: contains(matrix.os, 'windows')
run: |
echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4' > %SystemRoot%\System32\drivers\etc\hosts
echo '::1 localhost localhost.localdomain localhost6 localhost6.localdomain6' >> %SystemRoot%\System32\drivers\etc\hosts
shell: cmd
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: AdoptOpenJDK/install-jdk@v1
with:
version: ${{ matrix.jdk }}
impl: ${{ matrix.impl }}
- name: Run Tests with JDK 8
if: ${{ matrix.jdk == '8' }}
run: mvn -ntp -U -B -fae clean verify -Pee-namespace-interop -pl javax,. --also-make
- name: Run Tests with JDK 11 or above
if: ${{ matrix.jdk != '8' }}
run: mvn -ntp -U -B -fae clean verify -Pee-namespace-interop
- uses: actions/upload-artifact@v2
if: failure()
with:
name: surefire-ee-interoperable-reports-${{ matrix.openjdk}}-${{ matrix.jdk }}-${{ matrix.os }}
path: '**/surefire-ee-interoperable-reports/*.txt'

0 comments on commit 06fa278

Please sign in to comment.