Skip to content

Commit

Permalink
Run CI via GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Oct 5, 2021
1 parent 01e53c6 commit 3825092
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 39 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
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
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

1 comment on commit 3825092

@vercel
Copy link

@vercel vercel bot commented on 3825092 Oct 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.