3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-25 19:49:33 +01:00
setup-node/.github/workflows/versions.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2020-05-03 15:49:04 +02:00
name: versions
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
jobs:
versions:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
2020-05-03 16:12:44 +02:00
# test version that falls through to node dist
- name: Setup node 11 from dist
uses: ./
with:
node-version: 11
- name: Verify node and npm
2020-05-03 22:37:13 +02:00
run: __tests__/verify-node.sh 11
# test old versions which didn't have npm and layout different
2020-05-03 15:49:04 +02:00
- name: Setup node 0.12.18 from dist
uses: ./
with:
node-version: 0.12.18
- name: Verify node
shell: bash
2020-05-03 22:37:13 +02:00
run: __tests__/verify-node.sh 0.12.18 SKIP_NPM
# test version from node manifest
2020-05-04 00:23:27 +02:00
- name: Setup node 12.16.2 from manifest
2020-05-03 22:37:13 +02:00
uses: ./
with:
2020-05-04 00:23:27 +02:00
node-version: 12.16.2
2020-05-03 22:37:13 +02:00
- name: Verify node and npm
run: __tests__/verify-node.sh 12