Skip to content

Commit

Permalink
[E2E] email sign up smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
samtgarson committed Dec 23, 2023
1 parent fb29742 commit 341d39f
Show file tree
Hide file tree
Showing 10 changed files with 609 additions and 34 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
es6: true
},
root: true,
ignorePatterns: ['packages/e2e/bin/generate-google-token.js'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ on:
- main
paths:
- 'web/**'
- 'packages/core/**'
- 'packages/database/**'
- 'packages/email/**'
- 'packages/shared/**'
- 'packages/**'

jobs:
deploy-preview:
Expand Down Expand Up @@ -67,6 +64,10 @@ jobs:
run: npm run -w packages/database db:build
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Create GMail secret files
run: |
echo ${{ secrets.GMAIL_CREDENTIALS_JSON }} | base64 -d > ./packages/e2e/gmail-credentials.json
echo ${{ secrets.GMAIL_TOKEN_JSON }} | base64 -d > ./packages/e2e/gmail-token.json
- name: Run Playwright tests
run: npx -w packages/e2e playwright test --project smoke-tests
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ next-env.d.ts

# Sentry Config File
.sentryclirc

gmail-credentials.json
gmail-token.json
Loading

0 comments on commit 341d39f

Please sign in to comment.