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/.gitignore b/.gitignore index 6bc9263..92aecf3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ test-extensions .npmrc .vscode-test test/utils-test-project/package-lock.json +test-res diff --git a/test/utils-test-project/.vscodeignore b/test/utils-test-project/.vscodeignore index 4825dce..fdae582 100644 --- a/test/utils-test-project/.vscodeignore +++ b/test/utils-test-project/.vscodeignore @@ -12,3 +12,4 @@ vsc-extension-quickstart.md test-resources/** test-extensions/** resources +test-res/**