-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (36 loc) · 1.1 KB
/
pr_visual_flow.yml
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
name: PR Visual Flow
on:
pull_request:
branches: [ master ]
env:
STENCIL_TEST_VISUAL: true
TEST_REPORT_JUNIT_XML_OUTPUT_DIR: target/visual-reports
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Libreoffice for tests
run: sudo apt-get update && sudo apt-get install -y libreoffice-core libreoffice-writer libreoffice-java-common imagemagick ghostscript --no-install-recommends
- name: Set PDF Policy
run: sudo sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
- name: Install Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Test Clojure
run: make visual-test
- name: Archive diff png
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-visual-images
path: |
/home/runner/work/_temp/**/*.png
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Visual Tests
path: target/surefire-reports/*.xml
reporter: java-junit