-
-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (47 loc) · 1.56 KB
/
it-with-arq-wildfly-remote.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: it-with-arq-wildfly-remote
on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
it-with-arq-wildfly-remote:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- run: java -version
- name: Run WildFly server
run: |
export WF_ARCHIVE=wildfly-preview
export WF_VERSION=26.0.0.Final
export INSTALL_DIR="/opt/appsvr"
mkdir ${INSTALL_DIR}
curl -o /tmp/${WF_ARCHIVE}.zip -L https://github.com/wildfly/wildfly/releases/download/${WF_VERSION}/wildfly-preview-${WF_VERSION}.zip \
&& unzip /tmp/${WF_ARCHIVE}.zip -d ${INSTALL_DIR} \
&& rm /tmp/${WF_ARCHIVE}.zip \
&& true
chmod -R a+rw ${INSTALL_DIR}
chmod -R a+x ${INSTALL_DIR}/${WF_ARCHIVE}-${WF_VERSION}/bin/*
export WF_HOME=${INSTALL_DIR}/${WF_ARCHIVE}-${WF_VERSION}
${WF_HOME}/bin/add-user.sh admin Admin@123 --silent
${WF_HOME}/bin/standalone.sh -c standalone-full.xml &
sleep 10
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run integration test with -Parq-wildfly-remote
run: mvn clean verify -Parq-wildfly-remote