Skip to content

chore(auth): rebase fork on upstream, remove Prisma workarounds fixed… #678

chore(auth): rebase fork on upstream, remove Prisma workarounds fixed…

chore(auth): rebase fork on upstream, remove Prisma workarounds fixed… #678

Workflow file for this run

name: Deploy Pipeline
on:
push:
branches: [main, test, feat/*]
pull_request:
branches: [main, test]
jobs:
commit:
name: Commit Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: wagoid/commitlint-github-action@v6
setup-base:
name: Setup dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-base
lint:
name: Lint check
runs-on: ubuntu-latest
needs: [commit, setup-base]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/quality-check
with:
check-type: lint
format:
name: Format check
runs-on: ubuntu-latest
needs: [commit, setup-base]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/quality-check
with:
check-type: format
type:
name: Type check
runs-on: ubuntu-latest
needs: [commit, setup-base]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/quality-check
with:
check-type: type
test:
name: Unit tests
runs-on: ubuntu-latest
needs: [commit, setup-base]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/quality-check
with:
check-type: test
# deploy-preview:
# if : github.ref == 'refs/heads/test'
# name: Deploy Preview
# runs-on: ubuntu-latest
# needs: [lint, format, type, test]
# environment: preview
# steps:
# - name: Trigger Dokploy Deploy Preview
# run: |
# curl -X 'POST' 'https://${{ secrets.DOKPLOY_VPS_URL }}/api/compose.deploy' \
# -H 'accept: application/json' \
# -H 'Content-Type: application/json' \
# -H 'x-api-key: ${{ secrets.DOKPLOY_API_TOKEN }}' \
# -d '{
# "composeId": "${{ secrets.DOKPLOY_COMPOSE_ID_PREVIEW }}",
# "title": "Api Deployment for Preview",
# "description": "Deployment pipeline triggered by commit: ${{ github.sha }}"
# }'
# deploy-production:
# if : github.ref == 'refs/heads/main'
# name: Deploy Production
# runs-on: ubuntu-latest
# needs: [lint, format, type, test]
# environment: production
# steps:
# # # Setup
# # - uses: actions/checkout@v5
# # - uses: ./.github/actions/setup-base
# # # Release avec semantic-release
# # - name: Create release
# # run: bunx semantic-release
# # env:
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Trigger Dokploy Deploy Production
# run: |
# curl -X 'POST' 'https://${{ secrets.DOKPLOY_VPS_URL }}/api/compose.deploy' \
# -H 'accept: application/json' \
# -H 'Content-Type: application/json' \
# -H 'x-api-key: ${{ secrets.DOKPLOY_API_TOKEN }}' \
# -d '{
# "composeId": "${{ secrets.DOKPLOY_COMPOSE_ID_PRODUCTION }}",
# "title": "Api Deployment for Production",
# "description": "Deployment pipeline triggered by commit: ${{ github.sha }}"
# }'