From 76248cd624e80d964f553836e78a3c578dfc40fa Mon Sep 17 00:00:00 2001 From: quentingrchr Date: Wed, 23 Oct 2024 15:27:59 +0200 Subject: [PATCH] add prisma migration check --- .github/workflows/code-check.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/code-check.yml diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml new file mode 100644 index 0000000..d29e24b --- /dev/null +++ b/.github/workflows/code-check.yml @@ -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 \ No newline at end of file