mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
name: Screenshot
|
|
concurrency: build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
screenshot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Prepare - Checkout
|
|
uses: actions/checkout@v4.1.6
|
|
|
|
- name: Prepare - Setup QEMU
|
|
uses: docker/setup-qemu-action@v3.0.0
|
|
|
|
- name: Prepare - Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v3.3.0
|
|
|
|
- name: Prepare - Setup Node
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Build - BUILD
|
|
uses: docker/build-push-action@v5.3.0
|
|
with:
|
|
load: true
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
tags: squidex-local
|
|
|
|
- name: Test - Start Compose
|
|
run: docker-compose up -d
|
|
working-directory: tools/TestSuite
|
|
|
|
- name: Test - Install Playwright Dependencies
|
|
run: npm ci
|
|
working-directory: './tools/e2e'
|
|
|
|
- name: Test - Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
working-directory: './tools/e2e'
|
|
|
|
- name: Test - Run Playwright Tests
|
|
run: npx playwright test --update-snapshots
|
|
working-directory: './tools/e2e'
|
|
env:
|
|
BASE__URL: http://localhost:8080
|
|
|
|
- name: Test - Upload Playwright Artifacts
|
|
if: always()
|
|
uses: actions/upload-artifact@v4.3.3
|
|
with:
|
|
name: snapshots
|
|
path: tools/e2e/snapshots/
|
|
retention-days: 30
|
|
|