Skip to content

fix: teardown happening during initial setup #33

fix: teardown happening during initial setup

fix: teardown happening during initial setup #33

Workflow file for this run

name: Development workflow
on:
pull_request:
branches:
- master
- next
- beta
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Detect Node version
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvmrc
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '${{ steps.nvmrc.outputs.version }}'
- name: Install npm packages
run: yarn --frozen-lockfile
- name: Run unit Tests
run: yarn test --coverage
- name: Run end-to-end tests
uses: cypress-io/github-action@v2
with:
build: yarn build:instrumented
start: yarn storybook:instrumented
- name: Prepare combined coverage report (unit + E2E tests)
run: yarn build:coverage
- name: Report code coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}