No redirect to login page prior to auth registration. #1262
This file contains hidden or 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
| name: Playwright Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - run: echo "${{ secrets.ENV_DEMO }}" > .env.demo-wordplay | |
| - name: Set up JDK 21 # Firebase tools requires >=21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Install Firebase CLI | |
| run: npm install -g firebase-tools | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| - name: Build project | |
| run: npm run build | |
| - name: Start Emulator | |
| run: firebase emulators:exec "npx playwright test --reporter=list" --project=demo-wordplay --only "firestore,hosting,auth" --log-verbosity QUIET | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: test-results/ | |
| retention-days: 30 |