[WFLY-18479][WFLY-18493][WFLY-18523] the starting point for the CY202… #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WildFly microprofile-config Quickstart CI | ||
env: | ||
QUICKSTART_PATH: microprofile-config | ||
MICROPROFILE: true | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
# paths: | ||
# - '$QUICKSTART_PATH/**' | ||
jobs: | ||
Test-build-default-matrix: | ||
name: ${{ env.QUICKSTART_PATH }} - BUILD DEFAULT - JDK${{ matrix.jdk }} - ${{ matrix.os }} | ||
Check failure on line 15 in .github/workflows/quickstart_microprofile-config_ci.yml GitHub Actions / WildFly microprofile-config Quickstart CIInvalid workflow file
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jdk: [11, 17] | ||
os: [ubuntu-20.04, windows-latest] | ||
steps: | ||
- uses: n1hility/cancel-previous-runs@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: quickstarts | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: AdoptOpenJDK/install-jdk@v1 | ||
with: | ||
version: ${{ matrix.jdk }} | ||
impl: hotspot | ||
- name: Build ${{ env.QUICKSTART_PATH }} Quickstart for Release | ||
run: | | ||
cd quickstarts | ||
cd ${{ env.QUICKSTART_PATH }} | ||
mvn -U -B -fae clean install -Drelease | ||
shell: bash | ||
- name: Build, run & test ${{ env.QUICKSTART_PATH }} Quickstart with provisioned-server profile | ||
if: ${{ env.MICROPROFILE == 'false' }} | ||
run: | | ||
cd quickstarts | ||
cd ${{ env.QUICKSTART_PATH }} | ||
echo "Building provisioned server..." | ||
mvn -U -B -fae clean package -Pprovisioned-server | ||
echo "Starting provisioned server..." | ||
mvn -U -B -fae wildfly:start -DjbossHome=target/server | ||
echo "Testing provisioned server..." | ||
mvn -U -B -fae verify -Dserver.host=http://localhost:8080 -Pintegration-testing | ||
echo "Shutting down provisioned server..." | ||
mvn -U -B -fae wildfly:shutdown | ||
shell: bash | ||
- name: Build, run & test ${{ env.QUICKSTART_PATH }} Quickstart with bootable-jar profile | ||
if: ${{ env.MICROPROFILE == 'true' }} | ||
run: | | ||
cd quickstarts | ||
cd ${{ env.QUICKSTART_PATH }} | ||
echo "Building bootable jar..." | ||
mvn -U -B -fae clean package -Pbootable-jar | ||
echo "Starting bootable jar..." | ||
mvn -U -B -fae wildfly-jar:start -Djar-file-name=target/${{ env.QUICKSTART_PATH }}-bootable.jar | ||
echo "Testing bootable jar..." | ||
mvn -U -B -fae verify -Dserver.host=http://localhost:8080 -Pintegration-testing | ||
echo "Shutting down bootable jar..." | ||
mvn -U -B -fae wildfly-jar:shutdown | ||
shell: bash | ||
- name: Build ${{ env.QUICKSTART_PATH }} Quickstart with openshift profile | ||
run: | | ||
cd quickstarts | ||
cd ${{ env.QUICKSTART_PATH }} | ||
mvn -U -B -fae clean package -Popenshift | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: surefire-reports-JDK${{ matrix.jdk }}-${{ matrix.os }} | ||
path: 'quickstarts/$QUICKSTART_PATH/**/surefire-reports/*.txt' |