Skip to content

Replace remote GitHub avatars with local assets (#822) #10

Replace remote GitHub avatars with local assets (#822)

Replace remote GitHub avatars with local assets (#822) #10

name: UI test
on:
push:
branches:
- main
pull_request:
jobs:
accessibility:
if: ${{ github.repository == 'primer/brand' }}
name: Accessibility
runs-on:
labels: ubuntu-latest-16-cores
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps
- name: Build dependencies
run: npm run build:lib && cd apps/storybook && npx storybook build
- name: Serve Storybook and run tests
run: npx start-server-and-test 'npm run start:axe --workspace=apps/storybook' 6006 'npm run test:axe'