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

142 lines
3.6 KiB
YAML
Raw Normal View History

name: versions
on:
pull_request:
paths-ignore:
2022-04-01 10:13:52 +02:00
- '**.md'
push:
branches:
2021-06-25 11:06:49 +02:00
- main
- releases/*
paths-ignore:
- '**.md'
2022-04-01 10:13:52 +02:00
jobs:
local-cache:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10, 12, 14]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
2021-06-25 11:56:15 +02:00
lts-syntax:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [lts/dubnium, lts/erbium, lts/fermium, lts/*]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
2021-06-25 11:56:15 +02:00
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
manifest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
2021-06-30 14:07:45 +02:00
node-version: [10.15, 12.16.0, 14.2.0, 16.3.0]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
- name: Setup Node
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
check-latest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
2021-06-30 14:07:45 +02:00
node-version: [10, 12, 14]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
- name: Setup Node and check latest
uses: ./
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
version-file:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
- name: Setup node from node version file
uses: ./
with:
node-version-file: '__tests__/data/.nvmrc'
- name: Verify node
run: __tests__/verify-node.sh 14
node-dist:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [11, 13]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
- name: Setup Node from dist
uses: ./
with:
node-version: ${{ matrix.node-version }}
- name: Verify node and npm
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
old-versions:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
# test old versions which didn't have npm and layout different
- name: Setup node 0.12.18 from dist
uses: ./
with:
node-version: 0.12.18
- name: Verify node
run: __tests__/verify-node.sh 0.12.18 SKIP_NPM
2020-12-09 20:28:47 +01:00
shell: bash
arch:
runs-on: windows-latest
steps:
2022-04-01 10:13:52 +02:00
- uses: actions/checkout@v3
2021-06-30 14:07:45 +02:00
- name: Setup node 14 x86 from dist
2020-12-09 20:28:47 +01:00
uses: ./
with:
2021-06-30 14:07:45 +02:00
node-version: '14'
2020-12-09 20:28:47 +01:00
architecture: 'x86'
- name: Verify node
run: __tests__/verify-arch.sh "ia32"
shell: bash