Skip to content

Commit

Permalink
add prisma migration check
Browse files Browse the repository at this point in the history
  • Loading branch information
quentingrchr committed Oct 23, 2024
1 parent 21cf4c4 commit 76248cd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check code

on:
pull_request:
branches:
- main

jobs:
check-migrations:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Check Prisma Migrations
uses: premieroctet/prisma-drop-migration-warning@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
main-branch: 'main'
path: 'prisma'
warning: true

0 comments on commit 76248cd

Please sign in to comment.