-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new pipeline to check images daily
- Loading branch information
1 parent
86ec596
commit 9d373bf
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Daily broken images check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
# Every Weekday at 8 AM AEDT - https://cron.help/#0_21_*_*_SUN-THU | ||
- cron: "0 21 * * SUN-THU" | ||
workflow_dispatch: | ||
|
||
env: | ||
test_to_run: "images" | ||
deploy_url: "https://ssw.com.au" | ||
reporter: "--reporter='./ui-tests/reporter.ts'" | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
jobs: | ||
check-broken-images: | ||
name: Run Playwright Tests | ||
uses: ./.github/workflows/template-ui-tests.yml | ||
with: | ||
deploy_url: ${{ env.deploy_url }} | ||
tests_to_run: ${{ env.test_to_run }} | ||
reporter: ${{ env.reporter }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { FullResult, Reporter } from "@playwright/test/reporter"; | ||
|
||
class MyReporter implements Reporter { | ||
onEnd(result: FullResult) { | ||
console.log(`${result.status}`); | ||
} | ||
} | ||
export default MyReporter; |