Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add node aliases
  • Loading branch information
panticmilos committed Apr 19, 2022
commit b08c36311de4a7fa168cabe4146e25137419bd37
32 changes: 32 additions & 0 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,35 @@ jobs:
- name: Verify node
run: __tests__/verify-arch.sh "ia32"
shell: bash

node-latest-aliases:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [current, latest, node, "16.14.2"]
steps:
- name: Retrieve version before install
run: |
version=$(echo $(node --version))
echo "::set-output name=NODE_VERSION::$version"
id: version
shell: bash
- uses: actions/checkout@v3
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Retrieve version after install
run: |
updatedVersion=$(echo $(node --version))
echo "::set-output name=NODE_VERSION_UPDATED::$updatedVersion"
id: updatedVersion
shell: bash
- name: Compare versions
if: ${{ steps.version.outputs.NODE_VERSION == steps.version.outputs.NODE_VERSION_UPDATED}}
run: |
echo "${{steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}"
echo "${{steps.version.outputs.NODE_VERSION}}"
exit 1
Loading