Upload screenshot for runner failures (#72)
This commit is contained in:
parent
9a95c7d069
commit
c51a55013c
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -17,3 +17,4 @@ Contracts/*
|
|||
.DS_Store
|
||||
.cache/
|
||||
.env
|
||||
failure.png
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue