Skip to content

refactor: try to write better code #43

refactor: try to write better code

refactor: try to write better code #43

name: Migrations lint
on:
pull_request:
jobs:
lint:
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: pass
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: ariga/atlas-action@v0
with:
dir: ent/migrate/migrations
dir-format: atlas
dev-url: postgres://postgres:pass@localhost:5432/test?sslmode=disable