From 57600c8adf189941d9a846a5fa75136a4bafc16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 4 Jan 2023 13:25:34 +0100 Subject: [PATCH] Remove *.log files from snapshot artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- .github/workflows/check-e2e.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/check-e2e.yml b/.github/workflows/check-e2e.yml index 5a876c68b..50a67ba86 100644 --- a/.github/workflows/check-e2e.yml +++ b/.github/workflows/check-e2e.yml @@ -76,6 +76,14 @@ jobs: npm run test:e2e -- --project ${{ matrix.browser }}; fi + # We don't care about the logs in visual snapshot tests, only the images. + - name: Cleanup artifacts + if: always() + run: | + if [ ${{ matrix.browser }} = "visual" ]; then + shopt -s globstar + rm -rf tests/visual/snapshots/**/*.log + - name: Upload artifacts uses: actions/upload-artifact@v3 if: always()