-
-
Notifications
You must be signed in to change notification settings - Fork 200
89 lines (82 loc) · 2.97 KB
/
diff-output.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Compare Database Schema Outputs
on:
workflow_dispatch:
jobs:
diff-output:
runs-on: ubuntu-latest
steps:
- id: setup-node
uses: actions/setup-node@v4
with:
node-version: latest
- id: checkout-code
name: Checkout code
uses: actions/checkout@v4
- id: install-diff2html
name: Install diff2html
shell: bash
run: |
# Install diff2html-cli
npm config set fund false
npm --version
diff --version
npm install -g diff2html-cli
diff2html --version
- id: generate-diff
name: Compare files and generate diff
shell: sh
run: |
# Generate diff in HTML
#
mkdir --verbose diff-output/
#
./.github/scripts/diff-output.sh \
schemacrawler-oracle/src/test/resources/testOraclePortable.txt \
schemacrawler-sqlserver/src/test/resources/testSQLServerPortable.txt \
./diff-output/oracle-sqlserver.html \
"Oracle - SQL Server"
#
./.github/scripts/diff-output.sh \
schemacrawler-oracle/src/test/resources/testOraclePortable.txt \
schemacrawler-mysql/src/test/resources/testMySQLPortable.txt \
./diff-output/oracle-mysql.html \
"Oracle - MySQL"
#
./.github/scripts/diff-output.sh \
schemacrawler-oracle/src/test/resources/testOraclePortable.txt \
schemacrawler-db2/src/test/resources/testDB2Portable.txt \
./diff-output/oracle-db2.html \
"Oracle - IBM DB2"
#
#
#
./.github/scripts/diff-output.sh \
schemacrawler-oracle/src/test/resources/testOraclePortable.txt \
schemacrawler-oracle/src/test/resources/testOracleWithConnection.8.txt \
./diff-output/oracle-portable-standard.html \
"Oracle - Portable versus Standard"
#
./.github/scripts/diff-output.sh \
schemacrawler-sqlserver/src/test/resources/testSQLServerPortable.txt \
schemacrawler-sqlserver/src/test/resources/testSQLServerWithConnection.8.txt \
./diff-output/sqlserver-portable-standard.html \
"SQL Server - Portable versus Standard"
#
./.github/scripts/diff-output.sh \
schemacrawler-mysql/src/test/resources/testMySQLPortable.txt \
schemacrawler-mysql/src/test/resources/testMySQLWithConnection.8.txt \
./diff-output/mysql-portable-standard.html \
"MySQL - Portable versus Standard"
#
./.github/scripts/diff-output.sh \
schemacrawler-db2/src/test/resources/testDB2Portable.txt \
schemacrawler-db2/src/test/resources/testDB2WithConnection.8.txt \
./diff-output/db2-portable-standard.html \
"IBM DB2 - Portable versus Standard"
- id: upload-diff-output
name: Upload diff-output
uses: actions/upload-artifact@v4
with:
name: diff-output
path: ./diff-output/
retention-days: 5