Skip to content

Commit

Permalink
Site wide A11y using staging
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed Nov 15, 2023
1 parent 1e0c27e commit 3293eaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pa11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@ name: Check WCAG Standards

on:
workflow_run:
workflows:
- 'App Deploy [Azure - DEV]'
workflows: ["App Deploy [Azure - STAGE]"]
branches:
- main
types:
- completed
workflow_dispatch:
inputs:
workspace:
description: Deployment workspace to test against (staging, dev, review-pr-xxx)
description: Deployment workspace to test against (stage, dev, review-pr-xxx)
type: string
default: staging
default: stage

jobs:
test:
runs-on: ubuntu-latest
environment: development
env:
BOT_TOKEN: ${{ secrets.WEBAPP_CONFIG_BOT_TOKEN }}
DOMAIN: eyrecovery-${{ inputs.workspace || 'dev' }}.azurewebsites.net
DOMAIN: eyrecovery-${{ inputs.workspace || 'stage' }}.azurewebsites.net
steps:
-
name: Checkout Code
Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ else

case ${ENVIRONMENT} in
"development" )
bundle exec rails db:seed eyfs:bot sitemap:refresh:no_ping
bundle exec rails db:seed
;;
"staging" )
# no op
bundle exec rails eyfs:bot sitemap:refresh:no_ping
;;
"production" )
rm public/robots.txt && touch public/robots.txt
Expand Down

0 comments on commit 3293eaa

Please sign in to comment.