mirror of
https://github.com/penpot/penpotqa.git
synced 2024-08-03 09:18:53 +00:00
84 lines
2.6 KiB
YAML
84 lines
2.6 KiB
YAML
name: Penpot Regression Tests on PRO env
|
|
on:
|
|
workflow_dispatch:
|
|
jobs:
|
|
tests_chromium:
|
|
environment: PRO
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
- name: Run regression tests for chromium
|
|
env:
|
|
BASE_URL: ${{ secrets.BASE_URL }}
|
|
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
|
|
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
|
|
run: npx playwright test --project=chrome -gv 'PERF'
|
|
- name: Upload Playwright Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report-chromium
|
|
path: playwright-report/
|
|
retention-days: 30
|
|
tests_firefox:
|
|
if: ${{ always() }}
|
|
needs: [tests_chromium]
|
|
environment: PRO
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
- name: Run regression tests for firefox
|
|
env:
|
|
BASE_URL: ${{ secrets.BASE_URL }}
|
|
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
|
|
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
|
|
run: npx playwright test --project=firefox -gv 'PERF'
|
|
- name: Upload Playwright Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report-firefox
|
|
path: playwright-report/
|
|
retention-days: 30
|
|
tests_webkit:
|
|
if: ${{ always() }}
|
|
needs: [tests_chromium, tests_firefox]
|
|
environment: PRO
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
- name: Run regression tests for webkit
|
|
env:
|
|
BASE_URL: ${{ secrets.BASE_URL }}
|
|
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
|
|
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
|
|
run: npx playwright test --project=webkit -gv 'PERF'
|
|
- name: Upload Playwright Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report-webkit
|
|
path: playwright-report/
|
|
retention-days: 30
|