Skip to content

Commit

Permalink
WELD-2771 Modify CI script to be able to execute JSF numberguess test…
Browse files Browse the repository at this point in the history
… on WFLY
  • Loading branch information
manovotn committed Apr 22, 2024
1 parent bf706e0 commit 378894c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,19 @@ jobs:
path: .
- name: Extract WildFly
run: unzip wildfly.zip
# Build examples, start WFLY in background, give it time to boot, run JSF numberguess tests, shutdown WFLY
- name: Build with Maven
run: |
mvn clean verify -Dno-format -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -f examples/pom.xml
JBOSS_HOME=`pwd`'/wildfly'
export JBOSS_HOME=`echo $JBOSS_HOME`
mvn clean verify -Dno-format -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -f examples/pom.xml
$JBOSS_HOME/bin/standalone.sh &
sleep 3s
WFLY_PID=$(jps | grep -- jboss-modules.jar | grep -Eo '[0-9]{1,}')
mvn clean wildfly:deploy -Dno-format -f examples/jsf/numberguess/pom.xml
mvn clean verify -Dno-format -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Pintegration-testing -f examples/jsf/numberguess/pom.xml
kill -9 $WFLY_PID
sleep 3s
- name: Prepare failure archive (if maven failed)
if: failure()
shell: bash
Expand Down

0 comments on commit 378894c

Please sign in to comment.