Skip to content

Commit

Permalink
WELD-2707 Switch CI setup to only care about Weld 5 testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Feb 15, 2022
1 parent 0e7a933 commit cf83abb
Showing 1 changed file with 40 additions and 55 deletions.
95 changes: 40 additions & 55 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ on:
pull_request:
branches: [ master ]
env:
WFLY_EE8: https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastSuccessful/wildfly-latest-SNAPSHOT.zip
WFLY_EE9: https://ci.wildfly.org/guestAuth/repository/download/WF_WildflyPreviewNightly/latest.lastSuccessful/wildfly-preview-latest-SNAPSHOT.zip
# TODO as of writing this the nightly build is working towards EE 10 but not yet there; we therefore skip incontainer testing ATM
WFLY_EE10: https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastSuccessful/wildfly-latest-SNAPSHOT.zip

jobs:
# Preparation job that builds the cache, prepares snapshots and server
build-jdk11:
name: "Initial Weld ${{matrix.branch}} Build + WildFly patch"
name: "Initial Weld Build + WildFly patch"
runs-on: ubuntu-latest
strategy:
matrix:
branch: [master, 3.1]
steps:
- name: Checkout Weld Parent repo
uses: actions/checkout@v2
Expand All @@ -25,22 +22,14 @@ jobs:
with:
repository: weld/core
path: core
ref: ${{matrix.branch}}
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 11
- name: Download WildFly
run: |
cd $GITHUB_WORKSPACE
if [[ ${{matrix.branch}} == 3.1 ]]
then
echo "Downloading WFLY for EE 8"
wget $WFLY_EE8 -O wildfly-latest-SNAPSHOT.zip
else
echo "Downloading WFLY for EE 9"
wget $WFLY_EE9 -O wildfly-latest-SNAPSHOT.zip
fi
wget $WFLY_EE10 -O wildfly-latest-SNAPSHOT.zip
unzip wildfly-latest-SNAPSHOT.zip
# ZIP contains two more ZIPs, sources and actual WFLY
rm wildfly-*-src.zip
Expand All @@ -60,7 +49,7 @@ jobs:
path: ~/.m2/repository
# Caching is an automated pre/post action that installs the cache if the key exists and exports the cache
# after the job is done. In this case we refresh the cache monthly (by changing key) to avoid unlimited growth.
key: q2maven-${{matrix.branch}}-${{ steps.get-date.outputs.date }}
key: q2maven-${{ steps.get-date.outputs.date }}
- name: Build Weld Parent SNAPSHOT
run: |
mvn clean install -DskipTests -B -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -f parent/pom.xml
Expand All @@ -84,38 +73,39 @@ jobs:
- name: Persist WildFly
uses: actions/upload-artifact@v1
with:
name: wildfly-patched-${{matrix.branch}}-zip
name: wildfly-patched-zip
path: container/wildfly.zip
- name: Tar Maven Repo
shell: bash
run: tar -czf maven-repo.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v1
with:
name: maven-repo-${{matrix.branch}}
name: maven-repo
path: maven-repo.tgz
- name: Delete Local Artifacts From Cache
shell: bash
run: rm -r ~/.m2/repository/org/jboss/weld*

# Weld in-container tests, does NOT include TCKs which are run as a separate job
incontainer-tests:
name: "Weld ${{matrix.branch}} In-container Tests - JDK ${{matrix.java.name}}"
name: "Weld In-container Tests - JDK ${{matrix.java.name}}"
runs-on: ubuntu-latest
# TODO temporarily force-skip any in-container testing until we have a WFLY version that can execute it
if: "false"
needs: build-jdk11
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
java:
- { name: "8",
java-version: 8,
- { name: "11",
java-version: 11,
}
- {
name: "11",
java-version: 11,
name: "17",
java-version: 17,
}
branch: [master, 3.1]
steps:
- name: Checkout Weld Parent repo
uses: actions/checkout@v2
Expand All @@ -126,23 +116,22 @@ jobs:
with:
repository: weld/core
path: core
ref: ${{matrix.branch}}
- name: Set up JDK ${{ matrix.java.name }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java.java-version }}
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo-${{matrix.branch}}
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Download Patched WildFly
uses: actions/download-artifact@v1
with:
name: wildfly-patched-${{matrix.branch}}-zip
name: wildfly-patched-zip
path: .
- name: Extract WildFly
run: unzip wildfly.zip
Expand All @@ -161,27 +150,28 @@ jobs:
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-incontainer-jdk${{matrix.java.name}}-${{matrix.branch}}
name: test-reports-incontainer-jdk${{matrix.java.name}}
path: 'test-reports.tgz'

# CDI TCKs in WildFly
CDI-TCK:
name: "Weld ${{matrix.branch}} CDI TCK - JDK ${{matrix.java.name}}"
name: "Weld CDI TCK - JDK ${{matrix.java.name}}"
runs-on: ubuntu-latest
# TODO temporarily force-skip any in-container testing until we have a WFLY version that can execute it
if: "false"
needs: build-jdk11
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
java:
- { name: "8",
java-version: 8,
- { name: "11",
java-version: 17,
}
- {
name: "11",
java-version: 11,
name: "17",
java-version: 17,
}
branch: [master, 3.1]
steps:
- name: Checkout Weld Parent repo
uses: actions/checkout@v2
Expand All @@ -192,23 +182,22 @@ jobs:
with:
repository: weld/core
path: core
ref: ${{matrix.branch}}
- name: Set up JDK ${{ matrix.java.name }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java.java-version }}
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo-${{matrix.branch}}
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Download Patched WildFly
uses: actions/download-artifact@v1
with:
name: wildfly-patched-${{matrix.branch}}-zip
name: wildfly-patched-zip
path: .
- name: Extract WildFly
run: unzip wildfly.zip
Expand All @@ -227,27 +216,26 @@ jobs:
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-cdi-tck-jdk${{matrix.java.name}}-${{matrix.branch}}
name: test-reports-cdi-tck-jdk${{matrix.java.name}}
path: 'test-reports.tgz'

# Weld no-container tests, includes junit, Weld SE tests plus CDI TCKs and integration tests that don't require EE container
no-container-tests:
name: "Weld ${{matrix.branch}} Tests w/o Container - JDK ${{matrix.java.name}}"
name: "Weld Tests w/o Container - JDK ${{matrix.java.name}}"
runs-on: ubuntu-latest
needs: build-jdk11
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
java:
- { name: "8",
java-version: 8,
- { name: "11",
java-version: 11,
}
- {
name: "11",
java-version: 11,
name: "17",
java-version: 17,
}
branch: [master, 3.1]
steps:
- name: Checkout Weld Parent repo
uses: actions/checkout@v2
Expand All @@ -258,15 +246,14 @@ jobs:
with:
repository: weld/core
path: core
ref: ${{matrix.branch}}
- name: Set up JDK ${{ matrix.java.name }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java.java-version }}
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo-${{matrix.branch}}
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
Expand All @@ -285,27 +272,26 @@ jobs:
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-no-container-jdk${{matrix.java.name}}-${{matrix.branch}}
name: test-reports-no-container-jdk${{matrix.java.name}}
path: 'test-reports.tgz'

# CDI TCK for SE environment
CDI-TCK-SE:
name: "Weld ${{matrix.branch}} CDI TCK SE - JDK ${{matrix.java.name}}"
name: "Weld CDI TCK SE - JDK ${{matrix.java.name}}"
runs-on: ubuntu-latest
needs: build-jdk11
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
java:
- { name: "8",
java-version: 8,
- { name: "11",
java-version: 11,
}
- {
name: "11",
name: "17",
java-version: 11,
}
branch: [master, 3.1]
steps:
- name: Checkout Weld Parent repo
uses: actions/checkout@v2
Expand All @@ -316,15 +302,14 @@ jobs:
with:
repository: weld/core
path: core
ref: ${{matrix.branch}}
- name: Set up JDK ${{ matrix.java.name }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java.java-version }}
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo-${{matrix.branch}}
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
Expand All @@ -342,5 +327,5 @@ jobs:
uses: actions/upload-artifact@v1
if: failure()
with:
name: test-reports-cdi-tck-se-jdk${{matrix.java.name}}-${{matrix.branch}}
name: test-reports-cdi-tck-se-jdk${{matrix.java.name}}
path: 'test-reports.tgz'

0 comments on commit cf83abb

Please sign in to comment.