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

View File

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

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ Contracts/*
.DS_Store .DS_Store
.cache/ .cache/
.env .env
failure.png

View File

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