Fce 813/handle events while reconnecting #173
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: Tests 🧪 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: npm | |
- name: Use corepack | |
run: corepack enable | |
- name: Install dependencies ⬇️ | |
run: yarn --immutable | |
- name: Build 📦 | |
run: yarn build | |
- name: Run unit tests 🧪 | |
run: yarn test:unit | |
- name: Install Playwright Browsers 🧭 | |
run: npx playwright install --with-deps | |
- name: Login to GitHub Container Registry | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Pull Fishjam for webrtc-client tests | |
run: docker compose -f e2e-tests/webrtc-client/docker-compose-test.yaml pull fishjam | |
- name: Pull Fishjam for react-client tests | |
run: docker compose -f e2e-tests/react-client/docker-compose-test.yaml pull fishjam | |
- name: Run Playwright tests 🧪 | |
run: yarn test:e2e | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |