Skip to content

Commit

Permalink
Added local SQLite database used for e2e tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Apr 7, 2024
1 parent 84eafac commit 08b7d42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Prepare test environment
run: |
sed -i 's/provider = "mysql"/provider = "sqlite"/g' prisma/schema.prisma
sed -i 's/@db\.Text//g' prisma/schema.prisma
sed -i 's#^DATABASE_URL=.*#DATABASE_URL="file:data.db"#' .env
sed -i "s#AUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#AUTH_SECRET=$(openssl rand -base64 32)#g" .env
- name: Install dependencies
run: npm install
npm run migrate
- name: Build website
run: npm run build
- name: Install Playwright Browsers
Expand Down

0 comments on commit 08b7d42

Please sign in to comment.