File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ jobs:
107107 - uses : actions/cache@v3
108108 name : Cache cabal store
109109 with :
110- path : |
110+ path : |
111111 ${{ steps.setup-haskell.outputs.cabal-store }}
112112 dist-newstyle
113113 key : cache-cabal-store-v1-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
@@ -144,3 +144,15 @@ jobs:
144144
145145 - name : Run tests
146146 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