-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
01e53c6
commit 3825092
Showing
2 changed files
with
44 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- run: git config --global core.autocrlf input | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
cache: 'yarn' | ||
|
||
- run: yarn install | ||
- run: yarn lint | ||
- run: yarn flow | ||
- run: yarn test --coverage | ||
- run: yarn build | ||
- run: yarn run bundlesize | ||
- run: yarn esdoc | ||
|
||
- name: Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
if: matrix.os == 'ubuntu-latest' && github.head_ref == 'main' | ||
run: yarn coveralls | ||
shell: bash | ||
|
||
- name: Publish to Chromatic | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: chromaui/action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
autoAcceptChanges: main | ||
exitZeroOnChanges: true | ||
exitOnceUploaded: true |
This file was deleted.
Oops, something went wrong.
3825092
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: