#!/usr/bin/env bash

set -euo pipefail

./install_yarn.sh

# Install dependencies.
yarn install --frozen-lockfile --mutex file:../../yarn.mutex

# Lint the entire project.
yarn lint --no-fix --max-warnings=0
yarn format:check

# Run unit tests.
yarn test:unit
yarn build

# Check licenses
yarn license:check

yarn storybook:build
