Skip to content

Daily Penpot Regression Tests on PRE #212

Daily Penpot Regression Tests on PRE

Daily Penpot Regression Tests on PRE #212

name: Daily Penpot Regression Tests on PRE
on:
schedule: ## run tests at 01:00am UTC on every day-of-week from Monday through Friday
- cron: '00 1 * * 1-5'
workflow_dispatch:
jobs:
tests_chromium:
environment: PRE
timeout-minutes: 180
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
BASE_URL: ${{ secrets.BASE_URL }}
LOGIN_EMAIL: ${{ secrets.SECOND_EMAIL }}
SECOND_EMAIL: ${{ secrets.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
GITHUB_RUN_ID: ${{ github.run.id }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
GMAIL_NAME: ${{ secrets.GMAIL_NAME }}
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
- name: Send mattermost Message
env:
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
LOGIN_ID_MATTERMOST: ${{ secrets.LOGIN_ID_MATTERMOST }}
PASSWORD_MATTERMOST: ${{ secrets.PASSWORD_MATTERMOST }}
if: always()
run: npx ts-node -e "require('./helpers/mattermost.helper.js').sendMessage('Chrome')"