forked from instructure/instructure-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
4,786 additions
and
80 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
name: 'Chromatic Deployment' | ||
|
||
on: [pull_request] | ||
# .github/workflows/chromatic.yml | ||
|
||
# Other configuration required | ||
name: Chromatic check. | ||
on: [push] | ||
jobs: | ||
vrt-check: | ||
chromatic-deployment: | ||
runs-on: ubuntu-latest | ||
name: Chromatic Visual Regression check. | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# π Version 2 of the action | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # π Required to retrieve git history | ||
- name: Install Node 10 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '10' | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Build dependencies | ||
run: yarn bootstrap | ||
# π Adds Chromatic as a step in the workflow | ||
- name: Publish to Chromatic | ||
uses: chromaui/action@v1 | ||
# Options required to the GitHub Chromatic Action | ||
with: | ||
fetch-depth: 0 | ||
- name: Run the VRT script | ||
env: | ||
CHROMATIC_APP_CODE: ${{ secrets.CHROMATIC_APP_CODE }} | ||
run: ./docker/vrt "$CHROMATIC_APP_CODE" | ||
shell: bash | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# π Chromatic projectToken, refer to the manage page to obtain it. | ||
projectToken: ${{ secrets.CHROMATIC_APP_TOKEN }} | ||
exitZeroOnChanges: true |
Oops, something went wrong.