Replace header nav toggle logic with popover api #176
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: Tests | |
on: push | |
jobs: | |
job1: | |
name: Create Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Set Font Awesome token and dry run installation | |
run: | | |
npm config set '@fortawesome:registry=https://npm.fontawesome.com/' | |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_TOKEN }}" | |
npm install @fortawesome/fontawesome-pro --dry-run | |
- name: Install dependencies | |
run: npm ci | |
- name: Create test build | |
run: npm run test-build | |
- name: Cache test build | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: run-id-${{ github.run_id }} | |
job2: | |
name: Accessibility Audit | |
needs: job1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Retrieve cached test build | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: run-id-${{ github.run_id }} | |
- name: Run pa11y-ci test | |
run: npm run start-pa11y | |
job3: | |
name: Visual Regression | |
needs: job1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Retrieve cached test build | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: run-id-${{ github.run_id }} | |
- name: Run percy test | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
run: npm run start-percy |