-
Notifications
You must be signed in to change notification settings - Fork 519
57 lines (46 loc) · 1.44 KB
/
make-screenshots.yml
File metadata and controls
57 lines (46 loc) · 1.44 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Screenshot
concurrency: build
on:
workflow_dispatch:
jobs:
screenshot:
runs-on: ubuntu-latest
steps:
- name: Prepare - Checkout
uses: actions/checkout@v4.2.2
- name: Prepare - Setup QEMU
uses: docker/setup-qemu-action@v3.4.0
- name: Prepare - Setup Docker Buildx
uses: docker/setup-buildx-action@v3.9.0
- name: Prepare - Setup Node
uses: actions/setup-node@v4.2.0
with:
node-version: 18
- name: Build - BUILD
uses: docker/build-push-action@v6.14.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.6.1
with:
name: snapshots
path: tools/e2e/snapshots/
retention-days: 30