chore(deps): update storybook monorepo to v9 (major) #1385
This file contains hidden or 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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- macOS-latest | |
# - windows-latest | |
node: [22] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Enable Corepack and setup Yarn v4 | |
run: | | |
corepack enable | |
yarn --version | |
- name: Cache dependencies | |
id: cache-depends | |
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
with: | |
path: '**/node_modules' | |
key: os-${{ matrix.os }}-node${{ matrix.node }}-${{ hashFiles('yarn.lock') }} | |
- name: Create .yarnrc for Windows | |
if: runner.os == 'Windows' && steps.cache-depends.outputs.cache-hit != 'true' | |
run: echo "network-timeout 600000" > .yarnrc | |
- name: Install dependencies for Renovate/Dependabot | |
if: github.actor == 'renovate[bot]' || github.actor == 'dependabot[bot]' | |
run: yarn install --refresh-lockfile | |
- name: Install dependencies for normal PRs | |
if: github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' | |
run: yarn install --immutable | |
- name: Compile | |
run: yarn build | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn test |