From bfa16a9fe3c8024f52088e0acc6f731a43add71f Mon Sep 17 00:00:00 2001 From: j-mendez Date: Thu, 22 Feb 2024 13:17:17 -0500 Subject: [PATCH] ci(action): add test on push --- .github/workflows/action.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8d1056e..014e0d2 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,5 +1,11 @@ name: Tests -on: [pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: run-container: name: End to End @@ -10,7 +16,7 @@ jobs: id: a11ywatch-results-generator uses: ./ with: - WEBSITE_URL: https://jeffmendez.com + WEBSITE_URL: ${{ secrets.WEBSITE_URL }} FAIL_TOTAL_COUNT: 100 EXTERNAL: false SITE_WIDE: true @@ -19,6 +25,7 @@ jobs: env: DEFAULT_RUNNERS: htmlcs PAGEMIND_IGNORE_WARNINGS: true + - name: Get Results run: | echo "website accessibility score ${{ fromJson(steps['a11ywatch-results-generator'].outputs.results).data[0].issuesInfo.accessScore }}"