Skip to content

Add esm build

Add esm build #395

Workflow file for this run

name: PR actions
on:
pull_request:
branches: [main]
paths:
- '**'
- '.github/workflows/client.yml'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn
- name: Linting
run: yarn run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn
- name: Unit tests
run: yarn run test:ci
code-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn
- name: Unit tests
run: yarn run test:coverage
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn
- name: Build
run: yarn run build
build-storybook:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: corepack enable
- name: Install dependencies
run: yarn
- name: Build
run: yarn run build-storybook