Skip to content

Commit 3edcb8a

Browse files
authored
Merge pull request #340 from innFactory/feature/schemaspy
Feature/schemaspy
2 parents 98b9c1f + f8a6c47 commit 3edcb8a

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.bin/schemaspy/schemaspy.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
schemaspy.t=pgsql
2+
schemaspy.host=localhost
3+
schemaspy.port=5432
4+
schemaspy.db=test
5+
schemaspy.u=test
6+
schemaspy.p=test
7+
schemaspy.schemas=postgis
8+
schemaspy.o=./output
9+
schemaspy.dp=./

.github/workflows/test.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,19 @@ jobs:
5252
env:
5353
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5454
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
55-
56-
55+
- name: Visualize DB Schema
56+
run: |
57+
pushd $PWD/.bin/schemaspy/
58+
curl -JLO https://search.maven.org/remotecontent?filepath=org/postgresql/postgresql/$POSTGRESQL_VERSION/postgresql-$POSTGRESQL_VERSION.jar
59+
curl -JL https://github.com/schemaspy/schemaspy/releases/download/v${SCHEMASPY_VERSION}/schemaspy-${SCHEMASPY_VERSION}.jar -o schemaspy.jar
60+
java -jar schemaspy.jar -vizjs
61+
zip -r schemaspy.zip output/
62+
popd
63+
env:
64+
POSTGRESQL_VERSION: "42.5.0"
65+
SCHEMASPY_VERSION: "6.1.0"
66+
- name: Archive schemaspy db documentation
67+
uses: actions/upload-artifact@v3
68+
with:
69+
name: database-documentation
70+
path: .bin/schemaspy/schemaspy.zip

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ modules/play/logs/
77
.bin/setup/.idea
88
.bin/setup/target
99
.bin/setup/project/target
10+
.bin/schemaspy
11+
!.bin/schemaspy/schemaspy.properties
1012

1113
# openapi yaml generation
1214
.bin/mock/yaml

0 commit comments

Comments
 (0)