* Use bun in package.json * Update workflows * Update more workflows * Kick ci * Fix yaml * Fix type errors * Compat with snyk * Fix jest resolutions * Add another esm package * Fix aliases and next js missing deps * Update next js embed tests * Try fix embed test config * Fix * Fix requires in e2e support * Use bun not yarn in embed bin * Revert config changes * Use bun in more scripts and use prepare-release action * Replace more yarn usages * Remove overrides from bunfig move to package json * Revert e2e support changes * Add back comment * [ci skip] comment typo * Update bun lock * Update to reference bun * Update to reference bun * Update license disclaimer * Tidy tests * Update to use bun in workflows * Change aliases * Update codemirrort selector * Tidy license generation * Remove .only * Fix yarn references * Checkout .github for release scripts * Update lockfile * Re-add package * update release bunlock * fix checkout check --------- Co-authored-by: Ryan Laurie <iethree@gmail.com>
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: Loki Visual Regression Testing
|
|
|
|
on:
|
|
pull_request:
|
|
merge_group:
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Check which files changed
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 3
|
|
outputs:
|
|
frontend_ci: ${{ steps.changes.outputs.frontend_ci }}
|
|
frontend_sources: ${{ steps.changes.outputs.frontend_sources }}
|
|
frontend_loki_ci: ${{ steps.changes.outputs.frontend_loki_ci }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Test which files changed
|
|
uses: dorny/paths-filter@v3.0.0
|
|
id: changes
|
|
with:
|
|
token: ${{ github.token }}
|
|
filters: .github/file-paths.yaml
|
|
|
|
visual-test:
|
|
needs: files-changed
|
|
if: needs.files-changed.outputs.frontend_ci == 'true' || needs.files-changed.outputs.frontend_sources == 'true' || needs.files-changed.outputs.frontend_loki_ci == 'true'
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
docker:
|
|
image: docker:19.03.12
|
|
options: --privileged
|
|
ports:
|
|
- 2376:2376
|
|
env:
|
|
DOCKER_TLS_CERTDIR: /certs
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /tmp/docker-certs:/certs/client
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Prepare frontend environment
|
|
uses: ./.github/actions/prepare-frontend
|
|
|
|
- name: Prepare back-end environment
|
|
uses: ./.github/actions/prepare-backend
|
|
|
|
- name: Compile CLJS
|
|
run: NODE_ENV=development bun run build-pure:cljs
|
|
|
|
- name: Run Loki Visual Tests
|
|
run: bun run test-visual:loki:ci
|
|
|
|
- name: Generate Visual Report on Failure
|
|
if: failure()
|
|
run: bun run test-visual:loki-report
|
|
|
|
- name: Upload Artifact
|
|
id: artifact-upload-step
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: loki-report
|
|
include-hidden-files: true
|
|
path: .loki/
|
|
if-no-files-found: ignore
|