Skip to content

Production Release (#575) #653

Production Release (#575)

Production Release (#575) #653

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Run Tests
on:
push:
branches: # Run actions when code is committed to these branches
- main
pull_request:
branches: # Run actions when a PR is pushed based on one of these branches
- main
- staging
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code from ${{ github.repository }}
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
accessibility_scan:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code from ${{ github.repository }}
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Run pa11y
run: npm run pa11y-ci:gh
link_checker:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code from ${{ github.repository }}
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Run broken link checker
run: npm run link-checker:pipeline
linter:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code from ${{ github.repository }}
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint