mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
41 lines
1,013 B
YAML
41 lines
1,013 B
YAML
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
db-migrations:
|
|
runs-on: ubuntu-22.04
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16.4-alpine
|
|
ports:
|
|
- 5432:5432
|
|
env:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: registry
|
|
options: >-
|
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
|
|
env:
|
|
POSTGRES_HOST: localhost
|
|
POSTGRES_PORT: 5432
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: registry
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: setup environment
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
codegen: false # no need to run codegen in this case, we can skip
|
|
actor: migrations-test
|
|
|
|
- name: migrations tests
|
|
run: pnpm test
|
|
working-directory: packages/migrations
|