[TR-178] Basic e2e tests & pipeline setup #972
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: Test | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
push: | |
branches: ["*"] | |
jobs: | |
unit-test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npm i | |
- run: npm run typecheck | |
- run: npm run build | |
- run: npm run test | |
e2e-test: | |
name: Run E2E Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install Dependencies | |
run: | | |
npm ci | |
npx playwright install | |
sudo npx playwright install-deps | |
- name: Run E2E Tests | |
run: npm run test:e2e | |
- name: Save Artifacts | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: e2e-videos | |
path: playwright/**/*.webm |