Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Continuous Testing #7688

Continuous Testing

Continuous Testing #7688

Workflow file for this run

# Continuously tests the development env
name: Continuous Testing
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/30 * * * *' # Every 30 minutes
jobs:
tests:
timeout-minutes: 10
name: 'E2E Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}'
runs-on: ubuntu-latest
environment: github-pages
container:
image: mcr.microsoft.com/playwright:v1.35.1-focal
strategy:
fail-fast: false
matrix:
project: [chromium, webkit]
shardIndex: [1, 2, 3]
shardTotal: [3]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
working-directory: test
- name: Run tests
run: npx playwright test --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
working-directory: test
env:
# TODO extract this URL from context
URL: https://paritytech.github.io/governance-ui
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30