-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive screenshots in GHA #465
base: main
Are you sure you want to change the base?
Archive screenshots in GHA #465
Conversation
@@ -269,6 +270,39 @@ it('attach debugger for start with custom parameter event', async () => { | |||
|
|||
}).timeout(350000); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment here explaining the purpose of this after hook and reason for adding after hook here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the comment.
src/test/MavenTestDevModeActions.ts
Outdated
}); | ||
|
||
function copyFolderContents(sourceFolder: string, destinationFolder: string): void { | ||
console.log('source folder', sourceFolder); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unneccessary logs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
|
||
# Archive screenshots | ||
- name: Archive screenshots | ||
if: always() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means screenshot will capture even if tests are success?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means that the screenshot will be captured even if the tests are failed
. In GHA, the following steps after a failure are skipped. if always()
ensures that the screenshots are archived even if the steps above are failing which means the screenshots will be archived even after a test failure.
Created a new step in the workflow to archive screenshots.
Fixes #441