name: Install dependencies

description: Install dependencies
inputs:
  workingDirectory:
    description: "The working directory to install dependencies in"
    required: false
    default: "."

runs:
  using: "composite"
  steps:
    - uses: socketdev/action@937f824ec476dfd164d4a4d9995751427b0be143 # v1
      with:
        mode: firewall

    - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
      name: Install Bun
      with:
        bun-version: "1.3.14"

    - uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1
      with:
        node-version: '24'
        cache: true

    - name: Install dependencies
      shell: bash
      run: |
        cd ${{ inputs.workingDirectory }}
        sfw vp install --frozen-lockfile
