Skip to content

Update package.json + .nvmrc deps #196

Update package.json + .nvmrc deps

Update package.json + .nvmrc deps #196

Workflow file for this run

---
name: Windows CI
"on":
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs:
windows-ci:
name: Windows CI
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: tool-versions
name: Parse .tool-versions
uses: ./
- name: Test for bash
shell: bash
run: |
RUBY=${{steps.tool-versions.outputs.example-ruby}}
NPM=${{steps.tool-versions.outputs.example-npm}}
PYTHON=${{steps.tool-versions.outputs.example-python}}
NODEJS=${{steps.tool-versions.outputs.example-nodejs}}
echo "${RUBY?output not set}"
echo "${NPM?output not set}"
echo "${PYTHON?output not set}"
echo "${NODEJS?output not set}"
- name: Test for pwsh
shell: pwsh
run: |
$Env:RUBY="${{steps.tool-versions.outputs.example-ruby}}"
$Env:NPM="${{steps.tool-versions.outputs.example-npm}}"
$Env:PYTHON="${{steps.tool-versions.outputs.example-python}}"
$Env:NODEJS="${{steps.tool-versions.outputs.example-nodejs}}"
Test-Path $Env:RUBY
Test-Path $Env:NPM
Test-Path $Env:PYTHON
Test-Path $Env:NODEJS
- name: Test for cmd
shell: cmd
run: |
set RUBY=${{steps.tool-versions.outputs.example-ruby}}
set NPM=${{steps.tool-versions.outputs.example-npm}}
set PYTHON=${{steps.tool-versions.outputs.example-python}}
set NODEJS=${{steps.tool-versions.outputs.example-nodejs}}
if "%RUBY%" == "" exit 1
if "%NPM%" == "" exit 1
if "%PYTHON%" == "" exit 1
if "%NODEJS%" == "" exit 1
- name: Test for powershell
shell: powershell
run: |
$Env:RUBY="${{steps.tool-versions.outputs.example-ruby}}"
$Env:NPM="${{steps.tool-versions.outputs.example-npm}}"
$Env:PYTHON="${{steps.tool-versions.outputs.example-python}}"
$Env:NODEJS="${{steps.tool-versions.outputs.example-nodejs}}"
Test-Path $Env:RUBY
Test-Path $Env:NPM
Test-Path $Env:PYTHON
Test-Path $Env:NODEJS