Skip to content

Fixing homepage broken image #12

Fixing homepage broken image

Fixing homepage broken image #12

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:
DEPLOY_URL: "https://ssw.com.au"
TESTS_TO_RUN: "images"
defaults:
run:
shell: pwsh
jobs:
get-env-vars:
name: Get env vars
runs-on: ubuntu-latest
outputs:
DEPLOY_URL: ${{ steps.envs.outputs.DEPLOY_URL }}
TESTS_TO_RUN: ${{ steps.envs.outputs.TESTS_TO_RUN }}
steps:
- name: Get env
id: envs
run: |
echo "DEPLOY_URL=${{ env.DEPLOY_URL }}" >> $env:GITHUB_OUTPUT
echo "TESTS_TO_RUN=${{env.TESTS_TO_RUN }}" >> $env:GITHUB_OUTPUT
check-broken-images:
name: Run Playwright Tests
uses: ./.github/workflows/template-ui-tests.yml
needs: get-env-vars
with:
deploy_url: ${{ needs.get-env-vars.outputs.DEPLOY_URL }}
tests_to_run: ${{ needs.get-env-vars.outputs.TESTS_TO_RUN }}
create-issue: true