Penpot Regression Tests on PRE env (weekly) #77
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 | |
on: | |
schedule: ## run tests each Thursday at 6:00am UTC | |
- cron: '00 6 * * 4' | |
workflow_dispatch: | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
- 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 }} | |
run: npm run test | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
- name: Upload Playwright Report | |
uses: actions/upload-artifact@v3 |