Skip to content

Merge pull request #1677 from cfpb/ans_add_missing_icons #545

Merge pull request #1677 from cfpb/ans_add_missing_icons

Merge pull request #1677 from cfpb/ans_add_missing_icons #545

Workflow file for this run

name: Sauce CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
browser-tests:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Set up Ruby for Jekyll
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0
- name: Install dependencies with Yarn
run: |
yarn install
yarn after-install
- name: Start local Design System website server
run: |
yarn start &
sleep 5
- name: Run browser tests
# Don't run these tests on forks. It would be nice to instead check
# to see if the Sauce Labs environment variables are defined, but that
# doesn't seem currently possible:
# https://github.com/actions/runner/issues/520
if: ${{ github.repository_owner == 'cfpb' }}
env:
# These credentials are from @contolini's CFPB Sauce Labs account
# They're defined on the repo's settings page:
# https://github.com/cfpb/design-system/settings/secrets
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: yarn test:browser:cloud