Skip to content

chore(deps): pin dependencies #4157

chore(deps): pin dependencies

chore(deps): pin dependencies #4157

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- dev
jobs:
test:
strategy:
matrix:
os:
- macOS-latest
# - windows-latest
node: [24]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
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@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
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