fix("Slider"): update hook to prevent crash in Next.js 15 / React 19 #207
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
key: node_modules-v4-${{ hashFiles('yarn.lock') }} | |
path: |- | |
node_modules | |
*/node_modules | |
restore-keys: 'node_modules-v4-' | |
- name: Yarn install | |
run: yarn install --ignore-optional --frozen-lockfile | |
- name: Lint | |
run: yarn run lint | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
key: node_modules-v4-${{ hashFiles('yarn.lock') }} | |
path: |- | |
node_modules | |
*/node_modules | |
restore-keys: 'node_modules-v4-' | |
- name: Yarn install | |
run: yarn install --ignore-optional --frozen-lockfile | |
- name: Type Check | |
run: yarn run typescript | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
key: node_modules-v4-${{ hashFiles('yarn.lock') }} | |
path: |- | |
node_modules | |
*/node_modules | |
restore-keys: 'node_modules-v4-' | |
- name: Yarn install | |
run: yarn install --ignore-optional --frozen-lockfile | |
- name: Test | |
run: yarn run test:ci | |
build-library: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
key: node_modules-v4-${{ hashFiles('yarn.lock') }} | |
path: |- | |
node_modules | |
*/node_modules | |
restore-keys: 'node_modules-v4-' | |
- name: Yarn install | |
run: yarn install --ignore-optional --frozen-lockfile | |
- name: Build library | |
run: yarn run build | |
build-storybook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
key: node_modules-v4-${{ hashFiles('yarn.lock') }} | |
path: |- | |
node_modules | |
*/node_modules | |
restore-keys: 'node_modules-v4-' | |
- name: Yarn install | |
run: yarn install --ignore-optional --frozen-lockfile | |
- name: Build Storybook | |
run: yarn run build:storybook |