Skip to content

chore(deps-dev): Bump @types/react from 18.2.15 to 18.2.18 #1281

chore(deps-dev): Bump @types/react from 18.2.15 to 18.2.18

chore(deps-dev): Bump @types/react from 18.2.15 to 18.2.18 #1281

Workflow file for this run

name: Test & Build
on:
pull_request:
branches:
- main
env:
CI: true
jobs:
test:
name: Test and Build (${{ matrix.node_version }})
runs-on: ubuntu-22.04
strategy:
matrix:
node_version:
- 18
- 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js (${{ matrix.node_version }})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
always-auth: true
- name: Restore lerna
uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: corepack enable && corepack prepare yarn@stable --activate && yarn --immutable
- name: Lint
run: yarn lint
- name: Test & Build Package
run: |
yarn lerna run test --scope @berviantoleo/react-multi-crop
yarn lerna run build --scope @berviantoleo/react-multi-crop
- name: Try Build Docs
run: |
yarn docs
yarn lerna run docs --scope @berviantoleo/react-multi-crop
- name: Try Build Demo
run: yarn lerna run build --scope @berviantoleo/react-multi-crop-demo
env:
SKIP_PREFLIGHT_CHECK: true
PUBLIC_URL: /
DISABLE_ESLINT_PLUGIN: true
# TODO; will give the docs to artifacts
- name: Cypress run
uses: cypress-io/github-action@v5
with:
start: yarn start
wait-on: 'http://localhost:3000'
working-directory: examples/demo
env:
SKIP_PREFLIGHT_CHECK: true
- name: Upload to Codecov
uses: codecov/codecov-action@v3