diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4beb97011..adb86bd234 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: @@ -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() diff --git a/.stoat/config.yaml b/.stoat/config.yaml new file mode 100644 index 0000000000..a36c8bdc7f --- /dev/null +++ b/.stoat/config.yaml @@ -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