-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from informatici/release_1_14_0
Merge develop for release 1.14.0
- Loading branch information
Showing
160 changed files
with
12,873 additions
and
3,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,67 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout core | ||
run: git clone --depth=50 --branch=develop https://github.com/informatici/openhospital-core.git openhospital-core | ||
- name: Install core | ||
run: cd openhospital-core && mvn install -DskipTests=true && cd .. | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
java-package: jdk | ||
|
||
- name: Checkout core | ||
run: git clone --depth=50 --branch=develop https://github.com/informatici/openhospital-core.git openhospital-core | ||
|
||
- name: Install core | ||
run: cd openhospital-core && mvn install -DskipTests=true && cd .. | ||
|
||
- name: Generate JWT Token | ||
id: jwt | ||
run: echo "token=7DlyD1SHR5pCa4HGgTLWSYm8YQ7oRL1wpPbxyjWyHU44vUrqrooRu3lHVFSXWChesc" >> $GITHUB_OUTPUT | ||
|
||
- name: Store branch name | ||
id: extract_branch | ||
run: | | ||
if [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then | ||
echo "branch=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT | ||
elif [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then | ||
echo "branch=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_OUTPUT | ||
else | ||
echo "branch=INVALID_EVENT_BRANCH_UNKNOWN" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Build with Maven | ||
run: | | ||
cp rsc/application.properties.dist rsc/application.properties | ||
cp rsc/database.properties.dist rsc/database.properties | ||
cp rsc/log4j.properties.dist rsc/log4j.properties | ||
cp rsc/settings.properties.dist rsc/settings.properties | ||
sed -e "s/JWT_TOKEN_SECRET/${{ steps.jwt.outputs.token }}/g" rsc/application.properties.dist > rsc/application.properties | ||
mvn install -DskipTests=true | ||
echo ${{ steps.extract_branch.outputs.branch }} | ||
- name: Run API | ||
run: | | ||
cd target | ||
java -cp "openhospital-api-0.1.0.jar:rsc/:static/" org.springframework.boot.loader.JarLauncher & | ||
sleep 60 | ||
- name: Generate OpenAPI yaml | ||
run: mvn springdoc-openapi:generate -Dspringdoc.outputFileName=oh_rev.yaml | ||
|
||
- name: Running OpenAPI Spec breaking action | ||
# run: | | ||
# tenant_id=`curl -d '{"tenant": "oh", "email": "[email protected]"}' https://register.oasdiff.com/tenants | jq -r .id` | ||
# curl -o output -X POST -F base=@openapi/oh.yaml -F revision=@openapi/oh_rev.yaml https://api.oasdiff.com/tenants/${tenant_id}/breaking-changes | ||
# cat output | ||
uses: oasdiff/oasdiff-action/breaking@main | ||
with: | ||
base: openapi/oh.yaml | ||
revision: openapi/oh_rev.yaml | ||
fail-on-diff: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.2/apache-maven-3.8.2-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.