Skip to content

feat: expose dataTypes, themes and utils in browser build #738

feat: expose dataTypes, themes and utils in browser build

feat: expose dataTypes, themes and utils in browser build #738

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
paths:
- '**.tsx?'
- '**.jsx?'
pull_request:
branches:
- main
- v3.x
jobs:
test:
name: Running vitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Test with Coverage
run: yarn coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}