Update test_v2.yml

This commit is contained in:
Carlos Valente
2023-04-02 13:24:07 +02:00
committed by GitHub
parent 7456205b6e
commit 6582f4a9bc
+15 -15
View File
@@ -6,12 +6,9 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
testing: e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 20 timeout-minutes: 20
env: runs-on: ubuntu-latest
CI: ''
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -28,15 +25,18 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
# We choose to run tests separately - name: Build client
- name: React - Run unit tests run: pnpm build:client
run: pnpm test:pipeline
working-directory: ./apps/client
- name: Server - Run unit tests - name: Install Playwright Browsers
run: pnpm test:pipeline run: npx playwright install --with-deps
working-directory: ./apps/server
- name: Utils - Run unit tests - name: Run Playwright tests
run: pnpm test:pipeline run: npx playwright test
working-directory: ./packages/utils
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30