name: "Run tests on Windows"
description: "Runs the tests on Windows"

inputs:
  working-directory:
    description: "The working directory"
    required: true
    default: "."

runs:
  using: "composite"
  steps:
    - name: Install test runner
      working-directory: ${{ inputs.working-directory }}
      uses: taiki-e/install-action@nextest

    - name: Install Node
      uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
      with:
        node-version: "18"

    - name: Run tests
      shell: powershell
      working-directory: ${{ inputs.working-directory }}
      run: |
        cargo nextest run --workspace --no-fail-fast --failure-output immediate-final
