on:
  workflow_call:
    inputs:
      working-directory:
        required: true
        type: string

jobs: 
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '22.x'
      - name: Install dependencies
        run: |
          cd ${{ inputs.working-directory }}
          npm ci
      - name: Lint
        run: |
          cd ${{ inputs.working-directory }}
          npm run lint