File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 40
40
- name : Install Postgres support (macOS)
41
41
if : matrix.os == 'macos-latest'
42
42
run : |
43
- brew install postgresql@14 libpq [email protected]
43
+ brew install postgresql@14 libpq [email protected] pkg-config
44
44
brew services start postgresql
45
45
sudo mkdir -p /var/run/postgresql/
46
46
sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
@@ -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,14 @@ 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
+ run : |
150
+ PGPASSFILE=config/pgpass-mainnet cabal run cardano-db-tool -- run-migrations --mdir schema/ --ldir /tmp/
151
+ git diff schema/ > schema.diff
152
+ line_count="$(wc -l schema.diff)"
153
+ if test ${line_count} -ne 0 ; then
154
+ echo "Schema diff"
155
+ cat schema.diff
156
+ exit 1
157
+ fi
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ repository cardano-haskell-packages
9
9
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56
10
10
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
11
11
12
- index-state : 2022-11-11T00:00 :00Z
13
- index-state : cardano-haskell-packages 2022-11-12T20:00 :00Z
12
+ index-state :
13
+ , hackage.haskell.org 2022-11-11T00:00 :00Z
14
+ , cardano-haskell-packages 2022-11-12T20:00 :00Z
14
15
15
16
packages :
16
17
cardano-db
You can’t perform that action at this time.
0 commit comments