Skip to content

chore(deps): update dependency eslint to v9 - autoclosed #72

chore(deps): update dependency eslint to v9 - autoclosed

chore(deps): update dependency eslint to v9 - autoclosed #72

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: 'Test on Node.js ${{ matrix.node-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set pnpm version
shell: bash
run: |
pnpm=$(cat package.json | jq -r .engines.pnpm)
echo "PNPM_VERSION=${pnpm}" >> $GITHUB_ENV
- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test