Replace remote GitHub avatars with local assets (#822) #10
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: 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' |