2021-07-09 09:21:41 +00:00
|
|
|
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-07-09 09:30:26 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-08-13 11:24:54 +00:00
|
|
|
# install modules
|
2021-07-09 09:30:26 +00:00
|
|
|
- name: Install modules
|
|
|
|
run: yarn
|
2021-08-13 11:24:54 +00:00
|
|
|
# build
|
2021-08-13 11:22:11 +00:00
|
|
|
- name: Build
|
2021-08-13 11:24:54 +00:00
|
|
|
run: yarn build:packages
|
|
|
|
# run unit tests
|
2021-07-09 09:21:41 +00:00
|
|
|
- name: Jest Annotations & Coverage
|
|
|
|
uses: mattallty/jest-github-action@v1.0.3
|
|
|
|
env:
|
2021-07-09 09:28:57 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-07-09 09:30:26 +00:00
|
|
|
with:
|
|
|
|
test-command: 'yarn test'
|