Skip to content

fix: hook file type #247

fix: hook file type

fix: hook file type #247

Workflow file for this run

name: Testing
on:
push:
workflow_dispatch:
jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: install node
uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path | tr -d '\n')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: eslint checks
run: pnpm run lint