From 1154b9b6da22df367a3eec0e3cb01e47b2d9efc4 Mon Sep 17 00:00:00 2001 From: Daniel Banck Date: Mon, 9 Dec 2024 15:07:19 +0100 Subject: [PATCH] Store test screenshots for ui tests (#1906) * Store test screenshots for ui tests * Add changelog --- .changes/unreleased/INTERNAL-20241209-123358.yaml | 6 ++++++ .github/workflows/test.yml | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 .changes/unreleased/INTERNAL-20241209-123358.yaml diff --git a/.changes/unreleased/INTERNAL-20241209-123358.yaml b/.changes/unreleased/INTERNAL-20241209-123358.yaml new file mode 100644 index 000000000..0f8738abc --- /dev/null +++ b/.changes/unreleased/INTERNAL-20241209-123358.yaml @@ -0,0 +1,6 @@ +kind: INTERNAL +body: Store screenshots for failing UI tests +time: 2024-12-09T12:33:58.676197+01:00 +custom: + Issue: "1906" + Repository: vscode-terraform diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d4c919b9..7949701f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,3 +83,10 @@ jobs: - name: Run UI Tests run: npm run test:ui if: runner.os != 'Linux' + - name: Archive test artifacts + uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-screenshots-${{ matrix.os }}-${{ matrix.vscode }} + path: .test-storage/screenshots + retention-days: 1