remove that shit #48
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
name: e2e Tests | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
env: | |
VITE_APIKEY: ${{ secrets.VITE_APIKEY }} | |
VITE_AUTHDOMAIN: ${{ secrets.VITE_AUTHDOMAIN }} | |
VITE_PROJECTID: ${{ secrets.VITE_PROJECTID }} | |
VITE_STORAGEBUCKET: ${{ secrets.VITE_STORAGEBUCKET }} | |
VITE_MESSAGINGSENDERID: ${{ secrets.VITE_MESSAGINGSENDERID }} | |
VITE_APPID: ${{ secrets.VITE_APPID }} | |
VITE_USE_EMULATION: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Install firebase emulator | |
run: npm install -g firebase-tools | |
- name: Run e2e tests against firebase emulator | |
run: firebase emulators:exec 'pnpm e2e' | |
- name: Setup Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: 'reports/*.junit.xml' | |
if: always() | |
- name: Upload reports and videos | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-reports | |
path: | | |
reports/ | |
test-results/ | |
if: always() |