Skip to content

Commit

Permalink
chore: initial commit of ee10 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Oct 22, 2023
1 parent fd55630 commit bc3adc5
Show file tree
Hide file tree
Showing 155 changed files with 1,763 additions and 1,797 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/arq-glassfish-managed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: arq-glassfish-managed

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
cache: maven
- name: Build with Maven
run: |
mvn -B -q clean verify -Parq-glassfish-managed
59 changes: 59 additions & 0 deletions .github/workflows/arq-glassfish-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: arq-glassfish-remote

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
cache: maven
- name: Run Glassfish Server
run: |
export GLASSFISH_ARCHIVE=glassfish7
export GLASSFISH_VERSION=7.0.9
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-database \
&& 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
#
- name: Build with Maven
run: |
mvn -B -q clean verify -Parq-glassfish-remote

28 changes: 28 additions & 0 deletions .github/workflows/arq-wildfly-managed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: arq-wildfly-managed

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
cache: "maven"
- name: Run integration test with -Parq-wildfly-managed
run: mvn clean verify -Parq-wildfly-managed
47 changes: 47 additions & 0 deletions .github/workflows/arq-wildfly-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: arq-wildfly-remote

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDKs
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
cache: "maven"
- name: Run WildFly server
run: |
export WF_ARCHIVE=wildfly
export WF_VERSION=30.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-${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: Build with Maven
run: mvn clean verify -Parq-wildfly-remote
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "11"
java-version: "21"
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--aosp --skip-reflowing-long-strings --skip-sorting-imports --replace"
Expand All @@ -38,18 +38,13 @@ jobs:
build:
runs-on: ubuntu-latest
needs: [ formatting ]
strategy:
matrix:
distribution: ['temurin', 'zulu']
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 11, 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: ${{matrix.distribution}}
java-version: ${{matrix.java}}
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Build with Maven
run: mvn clean package --file pom.xml
69 changes: 0 additions & 69 deletions .github/workflows/it-with-arq-payara-managed.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/it-with-arq-wildfly-managed.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ nb*
data
cargo-tracker-data/
.factorypath
installs/
Loading

0 comments on commit bc3adc5

Please sign in to comment.