diff --git a/.github/workflows/run-test-template.yml b/.github/workflows/run-test-template.yml index e5c5d0a268a..9135195a553 100644 --- a/.github/workflows/run-test-template.yml +++ b/.github/workflows/run-test-template.yml @@ -6,6 +6,9 @@ on: project: required: true type: string + node-version: + required: true + type: number jobs: test: @@ -16,7 +19,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VERSION }} + node-version: ${{ inputs.node-version }} - name: Install Node.js dependencies run: npm ci - name: Run ${{ inputs.project }} tests diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 32083e36689..15507ca6bdb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,4 +42,5 @@ jobs: project: [misc, abilities, items, moves, battle] uses: ./run-test-template.yml # run job defined in run-test-template.yml with: - project: ${{ matrix.project }} \ No newline at end of file + project: ${{ matrix.project }} + node-version: ${{ env.NODE_VERSION }} \ No newline at end of file