File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ jobs:
107
107
- uses : actions/cache@v3
108
108
name : Cache cabal store
109
109
with :
110
- path : |
110
+ path : |
111
111
${{ steps.setup-haskell.outputs.cabal-store }}
112
112
dist-newstyle
113
113
key : cache-cabal-store-v1-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
@@ -144,3 +144,15 @@ jobs:
144
144
145
145
- name : Run tests
146
146
run : cabal test all -j1
147
+
148
+ - name : Check that Schema Migrations are complete
149
+ id : schema_check
150
+ run : |
151
+ PGPASSFILE=config/pgpass-mainnet cabal run cardano-db-tool -- run-migrations --mdir schema/ --ldir /tmp/
152
+ git diff schema/ > schema.diff
153
+ line_count="$(wc -l schema.diff)"
154
+ if test $(line_count} > 0 ; then
155
+ echo "Schema diff"
156
+ cat schema.diff
157
+ exit 1
158
+ fi
You can’t perform that action at this time.
0 commit comments