-
Notifications
You must be signed in to change notification settings - Fork 372
34 lines (29 loc) · 896 Bytes
/
Copy pathpr-gate.yml
File metadata and controls
34 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PR Gate
# This gate validates that Prisma migrations are in order and that we can build
# the docker container.
on:
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "true"
# full history so migration checks can diff against the base branch
fetch-depth: 0
# Fails fast (before the docker build) when migrations drift from
# schema.prisma or a new migration is added out of timestamp order.
- name: Check Prisma migrations
uses: ./.github/actions/check-prisma-migrations
with:
base-ref: ${{ github.base_ref }}
- name: Build Docker image
id: build
uses: docker/build-push-action@v7
with:
context: .