Skip to content

Commit

Permalink
install migra in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Sep 20, 2024
1 parent 8ba5944 commit 4534429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
run: |
echo 'select 123 as test_column \gdesc' | docker exec -i postgres_github_actions psql "postgresql://postgres:postgres@localhost:5432/postgres" -f - | grep 'test_column | integer'
- uses: actions/checkout@v2
- name: install migra
uses: threeal/[email protected]
with:
packages: migra
- run: migra --help | grep 'Generate a database migration'
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion packages/migra/test/python-parity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.each(fixtures)(
cwd: process.cwd(),
env: process.env,
reject: false, // migra exits with a non-zero code when there are changes
}).then(p => format(p.stdout))
}).then(p => format(p.stderr).trim() || format(p.stdout))
const migra = await runMigra(a, b, args())
const actual = format(migra.sql)

Expand Down

0 comments on commit 4534429

Please sign in to comment.