bump npm #134
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
name: Accessibility Tests | |
on: push | |
jobs: | |
mix-test: | |
name: Run application tests to generate HTML files | |
runs-on: ubuntu-20.04 | |
env: | |
MIX_ENV: test | |
services: | |
db: | |
image: postgres | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTRGES_DB: launch_cart_test | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Setup App | |
uses: ./.github/workflows/setup | |
- name: Run Application Tests | |
uses: ./.github/workflows/app_test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: html_files | |
path: test/axe_html/ | |
axe-test: | |
needs: mix-test | |
name: Run Accessibility Tests | |
runs-on: ubuntu-20.04 | |
env: | |
MIX_ENV: test | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Setup App | |
uses: ./.github/workflows/setup | |
- name: Generate css and js for pa11y | |
shell: bash | |
run: | | |
mix assets.deploy | |
cp -r priv/static/assets/js/ test/axe_html/assets | |
cp -r priv/static/assets/css/ test/axe_html/assets | |
- name: Download html files from mix test | |
uses: actions/download-artifact@v3 | |
with: | |
name: html_files | |
path: test/axe_html/ | |
- name: Pa11y Tests | |
shell: bash | |
run: ./run_pa11y.sh | |