Penpot Regression Tests on PRE env (webkit) #34
Workflow file for this run
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: Penpot Regression Tests on PRE env (webkit) | |
on: | |
schedule: # run tests each Thursday at 8:00pm UTC | |
- cron: '00 20 * * 4' | |
workflow_dispatch: | |
jobs: | |
tests_webkit: | |
environment: PRE | |
timeout-minutes: 240 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- name: Install dependencies | |
run: npm install | |
- name: Install Playwright | |
run: npx playwright install | |
- name: Run Playwright tests | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }} | |
SECOND_EMAIL: ${{ secrets.SECOND_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=webkit -gv 'PERF' ./tests/view-mode.spec.js | |
- name: Upload Playwright Report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report-webkit | |
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('WKit')" |