console/.github/workflows/tests-db-migrations.yaml
renovate[bot] 79b22fc267
chore(deps): update postgres docker tag to v14.11 (#3970)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 16:07:48 +02:00

43 lines
1 KiB
YAML

on:
workflow_call:
jobs:
db-migrations:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:14.11-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@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
cacheNext: false
cacheTurbo: false
- name: migrations tests
run: pnpm test
working-directory: packages/migrations