Merge pull request #1680 from cfpb/ans_update_deps #549
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: 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 |