From 16862f9fdc51e3b9e171f9350aadb53ae157bf39 Mon Sep 17 00:00:00 2001 From: Konrad Date: Thu, 21 Nov 2024 17:18:12 +0100 Subject: [PATCH] feat: upload artifacts from visual comparison for inspection It allows evaluating whether the visual differences are acceptable The condition in step description ensures that the artifacts are not uploaded on cancelled builds --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e72a6b1..5debac4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,3 +52,11 @@ jobs: run: bundle exec rake compile - name: run the tests run: bundle exec rspec + id: test + - name: upload test artifacts + uses: actions/upload-artifact@v4 + with: + name: "visual-matching-results-ruby-${{ matrix.ruby}}" + path: 'tmp/reference-image-matches' + if-no-files-found: ignore + if: success() || steps.test.conclusion == 'failure'