-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (40 loc) · 1.33 KB
/
playwright_pre.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Penpot Regression Tests on PRE env
on:
schedule: ## run tests each Thursday at 6:00am UTC
- cron: '00 6 * * 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: 18
- 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.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
GITHUB_RUN_ID: ${{ github.run.id }}
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()"