mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
Update test_v2.yml
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user