docs: demos intro, changelog reformat and storybook styling (#1022) #97
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
name: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
jobs: | |
getNodeVersion: | |
uses: gagoar/ts-node-template/.github/workflows/get_node_version.yml@main | |
unit-test: | |
runs-on: ubuntu-latest | |
needs: getNodeVersion | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@main | |
- name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ needs.getNodeVersion.outputs.node_version }}' | |
- name: Use Yarn cache | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: '.yarn/cache' | |
key: ${{ runner.os }}-yarn-${{ needs.getNodeVersion.outputs.node_version }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn | |
- name: Build packages 🔧 | |
run: yarn build | |
- name: Testing Library 🕵️♀️ | |
run: yarn test:ci | |
- name: Send coverage to codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests |