Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: ci
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
Expand All @@ -22,6 +26,11 @@ jobs:
with:
name: d2chaos
path: ./d2chaos/out

- name: Run Stoat Action
uses: stoat-dev/stoat-action@liren/improve-image-diff
if: always()

nofixups:
runs-on: ubuntu-latest
steps:
Expand All @@ -31,3 +40,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}

- name: Run Stoat Action
uses: stoat-dev/stoat-action@liren/improve-image-diff
if: always()
15 changes: 15 additions & 0 deletions .stoat/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 1
enabled: true
plugins:
job_runtime:
enabled: true
image_diff:
renderers:
image: d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg
baseline: d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg
# static_hosting:
# your_unique_id:
# metadata:
# name: "Name of artifact you're hosting, such as Code Coverage Report"
# path: path/from/git/root/to/directory/to/host