-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix test failures if database is not clean * Remove Doppler
- Loading branch information
1 parent
f4a4755
commit 102199a
Showing
10 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
NODE_ENV=development | ||
DATABASE_URL=mysql://USER:PASSWORD@HOST:PORT/DATABASE | ||
AZURE_STORAGE_ACCOUNT=my-azure-storage-account | ||
AZURE_STORAGE_KEY=my-azure-storage-account-access-key | ||
AZURE_STORAGE_KEY=AzureStorageAccountAccessKey | ||
AZURE_STORAGE_WEBSITE_DOMAIN=my-azure-storage-account.z13.web.core.windows.net | ||
CLERK_PUBLISHABLE_KEY=pk_test_SamplePublishableKey | ||
CLERK_SECRET_KEY=sk_test_SampleSecretKey | ||
DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@localhost:3306/${MYSQL_DATABASE} | ||
FIRST_ADMIN_EMAIL_ADDRESS=[email protected] | ||
PORT=3000 | ||
|
||
# Set these values to configure MySQL in Docker for local development. | ||
# In production, this can be inlined into the DATABASE_URL. | ||
MYSQL_DATABASE=festival | ||
MYSQL_USER=festival | ||
MYSQL_PASSWORD=changeme | ||
MYSQL_ROOT_PASSWORD=pleasechange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,6 @@ jobs: | |
- name: Check out repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- name: Install Doppler | ||
run: wget -t 3 -qO- https://cli.doppler.com/install.sh | sudo sh | ||
|
||
- name: Install MySQL | ||
run: | | ||
brew install mysql | ||
|
@@ -33,9 +30,16 @@ jobs: | |
run: npx playwright install --with-deps | ||
|
||
- name: Run tests | ||
run: doppler run -- npm run test | ||
run: npm run test | ||
env: | ||
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} | ||
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }} | ||
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }} | ||
AZURE_STORAGE_WEBSITE_DOMAIN: ${{ secrets.AZURE_STORAGE_WEBSITE_DOMAIN }} | ||
CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY }} | ||
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }} | ||
DATABASE_URL: mysql://root:@localhost:3306/festival | ||
FIRST_ADMIN_EMAIL_ADDRESS: [email protected] | ||
PORT: '3000' | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import { authFile } from 'playwright/tests/shared-data'; | ||
import dotenv from 'dotenv'; | ||
|
||
import { authFile } from './playwright/tests/shared-data'; | ||
|
||
dotenv.config(); | ||
|
||
const baseURL = `http://127.0.0.1:${process.env.PORT}`; | ||
|
||
|
@@ -23,6 +27,9 @@ export default defineConfig({ | |
command: ['npx prisma migrate dev', 'npx remix dev'].join(' && '), | ||
url: `${baseURL}/admin`, | ||
reuseExistingServer: !process.env.CI, | ||
env: { | ||
FIRST_ADMIN_EMAIL_ADDRESS: '[email protected]', | ||
}, | ||
}, | ||
|
||
projects: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters