Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lsa-shanghai committed Oct 8, 2021
0 parents commit bdcb6e0
Show file tree
Hide file tree
Showing 66 changed files with 6,669 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms
liberapay: hantsy # Replace with a single Liberapay username
issuehunt: hantsy # Replace with a single IssueHunt username
custom: ['https://www.buymeacoffee.com/hantsy'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ 'zulu', 'adopt' ]
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [11, 16]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: ${{matrix.distribution}}
java-version: ${{matrix.java}}

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn clean package --file pom.xml -Dmaven.compiler.source=${{matrix.java}} -Dmaven.compiler.target=${{matrix.java}}
35 changes: 35 additions & 0 deletions .github/workflows/it-with-arq-glassfish-managed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: it-with-arq-glassfish-managed

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-glassfish-managed:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-glassfish-managed
run: mvn clean verify -Parq-glassfish-managed
60 changes: 60 additions & 0 deletions .github/workflows/it-with-arq-glassfish-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: it-with-arq-glassfish-remote

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-glassfish-remote:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- run: java -version
- name: Run Glassfish server
run: |
export GLASSFISH_ARCHIVE=glassfish6
export GLASSFISH_VERSION=6.2.1
export INSTALL_DIR="/opt/appsvr"
mkdir ${INSTALL_DIR}
curl -o /tmp/${GLASSFISH_ARCHIVE}.zip -L https://github.com/eclipse-ee4j/glassfish/releases/download/${GLASSFISH_VERSION}/glassfish-${GLASSFISH_VERSION}.zip \
&& unzip /tmp/${GLASSFISH_ARCHIVE}.zip -d ${INSTALL_DIR} \
&& rm /tmp/${GLASSFISH_ARCHIVE}.zip \
&& true
chmod -R a+rw ${INSTALL_DIR}
chmod -R a+x ${INSTALL_DIR}/${GLASSFISH_ARCHIVE}/bin/*
export PATH=$PATH:${INSTALL_DIR}/${GLASSFISH_ARCHIVE}/bin/
asadmin start-domain domain1 && true
# echo "set AS_ADMIN_PASSWORD=adminadmin" \
# && echo "AS_ADMIN_PASSWORD=\nAS_ADMIN_NEWPASSWORD=adminadmin" > /tmp/new_passwordfile \
# && echo "AS_ADMIN_PASSWORD=adminadmin" > /tmp/passwordfile \
# && cat /tmp/new_passwordfile && cat /tmp/passwordfile \
# && asadmin --passwordfile /tmp/new_passwordfile change-admin-password --domain_name domain1 \
# && asadmin --passwordfile /tmp/passwordfile start-domain domain1 \
# && true
#
# - run: netstat -nao |grep 4848
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-glassfish-remote
run: mvn clean verify -Parq-glassfish-remote
35 changes: 35 additions & 0 deletions .github/workflows/it-with-arq-liberty-managed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: it-with-arq-liberty-managed

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-liberty-managed:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-liberty-managed
run: mvn clean verify -Parq-liberty-managed
58 changes: 58 additions & 0 deletions .github/workflows/it-with-arq-liberty-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
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/beta/2021-08-24_2341/openliberty-21.0.0.10-beta.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
35 changes: 35 additions & 0 deletions .github/workflows/it-with-arq-payara-embedded.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: it-with-arq-payara-embedded

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-payara-embedded:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-payara-embedded
run: mvn -B clean verify -Parq-payara-embedded
35 changes: 35 additions & 0 deletions .github/workflows/it-with-arq-payara-managed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: it-with-arq-payara-managed

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-payara-managed:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-payara-managed
run: mvn -B clean verify -Parq-payara-managed
35 changes: 35 additions & 0 deletions .github/workflows/it-with-arq-payara-micro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: it-with-arq-payara-micro

on:
push:
paths-ignore:
- "docs/**"
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
it-with-arq-payara-micro:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run integration test with -Parq-payara-micro
run: mvn -B clean verify -Parq-payara-micro
Loading

0 comments on commit bdcb6e0

Please sign in to comment.