Skip to content

E2E / Sanity / Cron #119

E2E / Sanity / Cron

E2E / Sanity / Cron #119

Workflow file for this run

name: Playwright / Sanity / Cron
on:
schedule:
- cron: '0 */23 * * *'
jobs:
Portfolio_E2E_Cron_Main:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Testmo CLI
run: npm install --no-save @testmo/testmo-cli
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Run Playwright - All tests
run: npx playwright test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: playwright-report
retention-days: 5
- name: Push Testmo Report
if: always()
run: |
npx testmo automation:run:submit \
--instance "$TESTMO_URL" \
--project-id 1 \
--name "Cron Workflow" \
--source "Cron-Portfolio" \
--results testmoresults/test-results.xml \
env:
TESTMO_URL: ${{ secrets.TESTMO_URL }}
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }}