Skip to content

Commit

Permalink
WIP: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brailor committed Jan 13, 2021
1 parent 364ca7b commit 16076fd
Show file tree
Hide file tree
Showing 4 changed files with 4,786 additions and 80 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/vrt-check.yml
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
Loading

0 comments on commit 16076fd

Please sign in to comment.