Upload screenshot for runner failures (#72)

This commit is contained in:
Steve Faulkner 2020-07-02 09:58:36 -05:00 committed by GitHub
parent 9a95c7d069
commit c51a55013c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -175,6 +175,7 @@ jobs:
- run: nuget pack -Version "2.0.0-github-${GITHUB_SHA}"
- run: nuget push -Source "$NUGET_SOURCE" -ApiKey Az *.nupkg
- uses: actions/upload-artifact@v2
name: packages
with:
path: "*.nupkg"
nugetmpac:
@ -198,5 +199,6 @@ jobs:
- run: nuget pack -Version "2.0.0-github-${GITHUB_SHA}"
- run: nuget push -Source "$NUGET_SOURCE" -ApiKey Az *.nupkg
- uses: actions/upload-artifact@v2
name: packages
with:
path: "*.nupkg"

View File

@ -1,7 +1,7 @@
name: Runners
on:
schedule:
- cron: "*/10 * * * *"
- cron: "*/5 * * * *"
jobs:
sqlcreatecollection:
runs-on: ubuntu-latest
@ -18,3 +18,8 @@ jobs:
PORTAL_RUNNER_SUBSCRIPTION: 69e02f2d-f059-4409-9eac-97e8a276ae2c
PORTAL_RUNNER_RESOURCE_GROUP: runners
PORTAL_RUNNER_DATABASE_ACCOUNT: portal-sql-runner
- uses: actions/upload-artifact@v2
if: failure()
with:
name: screenshots
path: failure.png

3
.gitignore vendored
View File

@ -16,4 +16,5 @@ notebookapp/*
Contracts/*
.DS_Store
.cache/
.env
.env
failure.png

View File

@ -50,6 +50,7 @@ describe("Collection CRUD", () => {
// .find('div[class="treeComponent dataResourceTree"]')
// .should("contain", dbId);
} catch (error) {
await page.screenshot({path: 'failure.png'});
trackException(error);
throw error;
}