Skip to content

Merge pull request #9 from cdlib/dependabot/npm_and_yarn/socket.io-pa… #148

Merge pull request #9 from cdlib/dependabot/npm_and_yarn/socket.io-pa…

Merge pull request #9 from cdlib/dependabot/npm_and_yarn/socket.io-pa… #148

Workflow file for this run

name: Tests
on: push
jobs:
job1:
name: Create Build
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.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@v3
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@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Retrieve cached test build
uses: actions/cache@v3
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@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Retrieve cached test build
uses: actions/cache@v3
with:
path: dist
key: run-id-${{ github.run_id }}
- name: Run percy test
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: npm run start-percy