Skip to content

Commit

Permalink
chore: update cicd script
Browse files Browse the repository at this point in the history
  • Loading branch information
frattezi committed Jun 15, 2024
1 parent 3b69cd7 commit 489ed3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/merge-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
# - name: Run lint
# run: yarn lint

# - name: Run tests
# run: yarn test
# - name: Run tests
# run: yarn test

build-and-deploy:
runs-on: ubuntu-latest
environment: Production
needs: lint-and-test
# needs: lint-and-test

steps:
- name: Checkout code
Expand All @@ -44,9 +44,15 @@ jobs:
- name: Install dependencies
run: echo ${{ secrets.DATABASE_URL }} > .env

- name: Install dependencies
run: cat .env

- name: Install dependencies
run: yarn


- name: Run database generation
run: yarn generate

- name: Run database migrations
run: yarn migrate

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "next start",
"lint": "biome check",
"migrate": "prisma migrate dev",
"generate": "prisma generate",
"format": "biome format",
"postinstall": "prisma generate"
},
Expand Down

0 comments on commit 489ed3d

Please sign in to comment.