Skip to content

Commit

Permalink
Update WCAG github action to accept mapbox API key (#22)
Browse files Browse the repository at this point in the history
When testing wcag in search-react-ui repo, the mapbox API key is required to use Mapbox GL in storybook. Updated the workflow to optionally accept a mapbox API key as an env variable for the build step.

J=none
TEST=manual

tested in this PR: yext/search-ui-react#331, where wcag error `An API access token is required to use Mapbox GL.` is no longer present after using the workflow from this branch.
  • Loading branch information
yen-tt committed Nov 16, 2022
1 parent 7942a7e commit cced072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/wcag_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
secrets:
NPM_TOKEN:
required: false
MAPBOX_API_KEY:
required: false

jobs:
WCAG-test:
Expand All @@ -34,4 +36,6 @@ jobs:
# `npm rebuild` will run all those post-install scripts for us.
- run: npm rebuild
- run: ${{ inputs.build_script }}
env:
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}
- run: npm run wcag

0 comments on commit cced072

Please sign in to comment.