name: Test

on:
  push:
    branches:
      - dev
    paths:
      - 'packages/**'

  pull_request:
    branches:
      - dev
    paths:
      - 'packages/**'

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Setup (Install Node & pnpm)
        uses: ./.github/actions/setup

      - name: Install dependencies
        run: pnpm i --frozen-lockfile

      - name: Test
        run: pnpm test
