From 4fbecbedc33eb963fb86ffdb6fc59b9aff714883 Mon Sep 17 00:00:00 2001 From: Dominik Jelinek Date: Thu, 15 Feb 2024 00:30:51 +0100 Subject: [PATCH] modify Main workflow Signed-off-by: Dominik Jelinek --- .github/workflows/main.yml | 15 +++++++++++---- .../src/test/marketplace.test.ts | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d81edc8..20764c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,14 +22,14 @@ jobs: env: CODE_VERSION: max - TEST_RESOURCES: test-resources + TEST_RESOURCES: test-res steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.15.x cache: npm @@ -47,6 +47,13 @@ jobs: run: | xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm test + - name: Upload Screenshots + uses: actions/upload-artifact@v4 + if: failure() + with: + name: screenshots-${{ matrix.os }} + path: ${{ github.workspace }}/test/**/screenshots/*.png + check: if: always() runs-on: ubuntu-latest @@ -65,4 +72,4 @@ jobs: if: ${{ needs.main.result != 'success' }} run: | echo "Status Check failed!" - exit 1 \ No newline at end of file + exit 1 diff --git a/test/utils-test-project/src/test/marketplace.test.ts b/test/utils-test-project/src/test/marketplace.test.ts index 9e4d4ed..9c92fc0 100644 --- a/test/utils-test-project/src/test/marketplace.test.ts +++ b/test/utils-test-project/src/test/marketplace.test.ts @@ -3,6 +3,6 @@ import { expect } from "chai"; describe('Marketplace', function () { it('TODO', function () { - expect(true).to.be.true; + expect(false).to.be.true; }); });