mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 03:28:42 +00:00
update e2e
This commit is contained in:
parent
762cd63863
commit
dd2d49377f
1 changed files with 8 additions and 5 deletions
13
.github/workflows/versions.yml
vendored
13
.github/workflows/versions.yml
vendored
|
@ -148,10 +148,12 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
node-version: [current, latest, node]
|
||||
steps:
|
||||
- name: Retrieve version before install
|
||||
- name: Get node version
|
||||
run: |
|
||||
version=$(echo $(node --version))
|
||||
echo "::set-output name=NODE_VERSION::$version"
|
||||
version = $(curl https://nodejs.org/dist/index.json | jq '.[0] | .version')
|
||||
id: version
|
||||
echo "::set-output name=LATEST_NODE_VERSION::$version"
|
||||
shell: bash
|
||||
id: version
|
||||
shell: bash
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -166,6 +168,7 @@ jobs:
|
|||
id: updatedVersion
|
||||
shell: bash
|
||||
- name: Compare versions
|
||||
if: ${{ steps.version.outputs.NODE_VERSION == steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
|
||||
if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
|
||||
run: |
|
||||
echo "System node version ${{steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} is same after the installation!"
|
||||
echo "Latest node version failed to download."
|
||||
exit 1
|
Loading…
Add table
Reference in a new issue