Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
FUSETOOLS2-2242: Collect ui-tests screenshoots and logs when cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
unsortedhashsets authored and djelinek committed Oct 24, 2023
1 parent e39da72 commit 0bc2e49
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/insider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:

- name: Install global dependencies
run: npm install -g typescript @vscode/vsce

- name: npm-ci
run: npm ci

- name: npm-compile
run: npm run compile

Expand All @@ -53,10 +53,10 @@ jobs:
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
- name: Setup JBang (trusted sources)
run: jbang trust add https://github.com/apache/

- name: Start minikube
uses: medyagh/[email protected]
with:
Expand Down Expand Up @@ -95,14 +95,20 @@ jobs:

- name: Store VS Code Logs (Ubuntu)
uses: actions/upload-artifact@v3
if: failure() && matrix.os == 'ubuntu-latest'
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.version }}-vscode-logs
path: ~/.config/Code/logs/*

- name: Store UI test log
uses: actions/upload-artifact@v3
if: failure() && (steps.uiTest_Ubuntu.outcome == 'failure')
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.version }}-ui-test-logs
path: test-resources/settings/logs/*
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:

- name: Install global dependencies
run: npm install -g typescript @vscode/vsce

- name: npm-ci
run: npm ci

- name: npm-compile
run: npm run compile

Expand All @@ -55,10 +55,10 @@ jobs:
run: |
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "$HOME/.jbang/bin" >> $GITHUB_PATH
- name: Setup JBang (trusted sources)
run: jbang trust add https://github.com/apache/

- name: Start minikube
uses: medyagh/[email protected]
with:
Expand Down Expand Up @@ -104,14 +104,20 @@ jobs:

- name: Store UI test log
uses: actions/upload-artifact@v3
if: failure() && (steps.uiTest_Ubuntu.outcome == 'failure')
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.version }}-ui-test-logs
path: test-resources/settings/logs/*

- name: Store UI Test Screenshots
uses: actions/upload-artifact@v3
if: failure() && (steps.uiTest_Ubuntu.outcome == 'failure')
if: |
(failure() || cancelled()) &&
(steps.uiTest_Ubuntu.outcome == 'failure' ||
steps.uiTest_Ubuntu.outcome == 'cancelled')
with:
name: ${{ matrix.os }}-${{ matrix.version }}-ui-test-screenshots
path: test-resources/screenshots/*.png
Expand All @@ -120,7 +126,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
name: Status Check
needs: [ main ]
needs: [main]
steps:
- name: Test Matrix Result
run: |
Expand Down

0 comments on commit 0bc2e49

Please sign in to comment.