Skip to content

Commit e286ed2

Browse files
committed
WELD-2771 Modify CI script to be able to execute JSF numberguess test on WFLY
1 parent 384de55 commit e286ed2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci-actions.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,19 @@ jobs:
357357
path: .
358358
- name: Extract WildFly
359359
run: unzip wildfly.zip
360+
# Build examples, start WFLY in background, give it time to boot, run JSF numberguess tests, shutdown WFLY
360361
- name: Build with Maven
361362
run: |
363+
mvn clean verify -Dno-format -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -f examples/pom.xml
362364
JBOSS_HOME=`pwd`'/wildfly'
363365
export JBOSS_HOME=`echo $JBOSS_HOME`
364-
mvn clean verify -Dno-format -Darquillian=wildfly-managed -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -f examples/pom.xml
366+
$JBOSS_HOME/bin/standalone.sh &
367+
sleep 3s
368+
WFLY_PID=$(jps | grep -- jboss-modules.jar | grep -Eo '[0-9]{1,}')
369+
mvn clean wildfly:deploy -Dno-format -f examples/jsf/numberguess/pom.xml
370+
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
371+
kill -9 $WFLY_PID
372+
sleep 3s
365373
- name: Prepare failure archive (if maven failed)
366374
if: failure()
367375
shell: bash

0 commit comments

Comments
 (0)