Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nickovchinnikov committed Jul 21, 2021
1 parent 2beb33f commit e01aeee
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

with:
fetch-depth: 0

- name: Test project token
run: echo "${{ secrets.CHROMATIC_PROJECT_TOKEN }}"

# Install deps
- name: Install npm deps
run: npm i
Expand All @@ -39,7 +44,12 @@ jobs:
# Run Stryker-Mutator check
- name: Stryker-Mutator
run: npm run test:mutate

# Visual regression test
- name: Chromatic
run: npm run chromatic -- --project-token=$CHROMATIC_PROJECT_TOKEN

# Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Options required to the GitHub Chromatic Action
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

0 comments on commit e01aeee

Please sign in to comment.