2020-09-01 14:51:59 +00:00
|
|
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
|
|
|
|
name: Node.js CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-30 08:43:23 +00:00
|
|
|
node-version: [16.x]
|
2020-09-01 14:51:59 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2021-04-30 08:43:23 +00:00
|
|
|
uses: actions/setup-node@v2
|
2020-09-01 14:51:59 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-04-30 08:43:23 +00:00
|
|
|
check-latest: true
|
2020-09-01 14:51:59 +00:00
|
|
|
|
2021-07-05 12:52:55 +00:00
|
|
|
- run: yarn install --frozen-lockfile
|
2020-10-06 21:42:32 +00:00
|
|
|
- run: yarn format-check
|
2020-09-08 05:56:44 +00:00
|
|
|
- run: yarn check-types
|
2020-09-01 14:51:59 +00:00
|
|
|
- run: yarn build
|
2021-07-05 12:52:55 +00:00
|
|
|
- run: yarn build-storybook
|
2020-09-01 14:51:59 +00:00
|
|
|
- run: yarn lint
|
|
|
|
- run: yarn test
|