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 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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -17,3 +17,4 @@ Contracts/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.cache/
|
.cache/
|
||||||
.env
|
.env
|
||||||
|
failure.png
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue