File tree 1 file changed +23
-3
lines changed
1 file changed +23
-3
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
71
71
if : matrix.os == 'ubuntu-latest'
72
72
run : |
73
73
sudo apt-get update
74
- sudo apt-get -y install libsodium23 libsodium-dev libsystemd0 libsystemd-dev
74
+ sudo apt-get -y install libsodium23 libsodium-dev libsystemd0 libsystemd-dev git
75
75
sudo apt-get -y remove --purge software-properties-common
76
76
sudo apt-get -y autoremove
77
77
@@ -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,23 @@ 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
+ echo "A"
152
+ git --version
153
+ echo "B"
154
+ git status schema
155
+ echo "C"
156
+ git status schema | grep schema/migration > /tmp/schema.diff
157
+ echo "D"
158
+ echo "*************************************************************"
159
+ cat /tmp/schema.diff
160
+ echo "*************************************************************"
161
+ line_count="$(wc -l < /tmp/schema.diff)"
162
+ if test ${line_count} -ne 0 ; then
163
+ echo "Schema diff"
164
+ cat /tmp/schema.diff
165
+ exit 1
166
+ fi
You can’t perform that action at this time.
0 commit comments