Skip to content

Commit

Permalink
Add node.js setup support
Browse files Browse the repository at this point in the history
  • Loading branch information
abhikdps committed Dec 2, 2024
1 parent 48a7467 commit 259ff00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ on:
description: Command to run after test commands.
required: false
type: string
default_node:
default: ""
description: Path to the Node.js version file (e.g., `.tool-versions`)
required: false
type: string
# keep permissions at top level because this is a composite workflow
permissions:
checks: read
Expand Down Expand Up @@ -120,6 +125,12 @@ jobs:
cache: ${{ hashFiles('requirements.txt', 'pyproject.toml') && 'pip' || '' }}
python-version: ${{ matrix.python_version || '3.12' }}

- name: Set up Node.js
if: ${{ inputs.default_node != '' }}
uses: actions/setup-node@v3
with:
node-version-file: ${{ inputs.default_node }}

- name: Run pre
if: ${{ inputs.run_pre }}
run: ${{ inputs.run_pre }}
Expand Down

0 comments on commit 259ff00

Please sign in to comment.