-
-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (51 loc) · 1.9 KB
/
it-with-arq-liberty-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
54
55
56
57
58
name: it-with-arq-liberty-remote
on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
it-with-arq-liberty-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
- 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 OpenLiberty server
run: |
export INSTALL_DIR="/opt/appsvr"
mkdir ${INSTALL_DIR}
curl -o /tmp/ol.zip -L https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/release/22.0.0.6/openliberty-22.0.0.6.zip \
&& unzip /tmp/ol.zip -d ${INSTALL_DIR} \
&& rm /tmp/ol.zip \
&& true
chmod -R a+rw ${INSTALL_DIR}
chmod -R a+x ${INSTALL_DIR}/wlp/bin/*
${INSTALL_DIR}/wlp/bin/server create testServer
cp ./src/test/arq-liberty-remote/server.xml ${INSTALL_DIR}/wlp/usr/servers/testServer/
${INSTALL_DIR}/wlp/bin/server start testServer
sleep 10
echo password|keytool -export -alias default -file testwlp.crt -keystore ${INSTALL_DIR}/wlp/usr/servers/testServer/resources/security/key.jks
if [ -z "${JAVA_HOME}" ]; then
JAVA_CMD = `which java`
JAVA_HOME = `dirname $JAVA_CMD`/..
fi
echo "JAVA_HOME: $JAVA_HOME"
keytool -import -trustcacerts -keystore ${JAVA_HOME}/lib/security/cacerts -storepass changeit -alias testwlp -file testwlp.crt -noprompt
- name: Run integration test with -Parq-liberty-remote
run: mvn clean verify -Parq-liberty-remote