Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Oct 11, 2024
1 parent 10e7e71 commit 7e949a1
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install
run: |
npm ci
# Ensure SQLite database is properly set up
- name: Run Prisma Migrations
run: |
npx prisma migrate deploy
env:
DATABASE_URL: "file:./dev.db" # Use SQLite file-based DB during CI

- name: Generate Prisma Client
run: |
npx prisma generate
env:
DATABASE_URL: "file:./dev.db" # Same SQLite DB for Prisma client

- name: Check Environment Variables
run: |
Expand All @@ -36,8 +50,7 @@ jobs:
echo "GOOGLE_SECRET is set: ${{ env.GOOGLE_SECRET != '' }}"
echo "TURSO_AUTH_TOKEN is set: ${{ env.TURSO_AUTH_TOKEN != '' }}"
echo "TURSO_DATABASE_URL is set: ${{ env.TURSO_DATABASE_URL != '' }}"
echo "RESEND_API_KEY" is set ${{ env.RESEND_API_KEY != '' }}
echo
echo "RESEND_API_KEY is set: ${{ env.RESEND_API_KEY != '' }}"
env:
NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
Expand Down Expand Up @@ -66,4 +79,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: build
path: build # Adjust this if your build output is in a different directory
path: build # Adjust this if your build output is in a different directory

0 comments on commit 7e949a1

Please sign in to comment.