This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FUSETOOLS2-2242: Collect ui-tests screenshoots and logs when cancelled
- Loading branch information
1 parent
e39da72
commit 0bc2e49
Showing
2 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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: | ||
|
@@ -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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -120,7 +126,7 @@ jobs: | |
if: always() | ||
runs-on: ubuntu-latest | ||
name: Status Check | ||
needs: [ main ] | ||
needs: [main] | ||
steps: | ||
- name: Test Matrix Result | ||
run: | | ||
|