mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-07 21:17:53 +00:00
[Tests] partially migrate to Github Actions
This commit is contained in:
50
.github/workflows/latest-npm.yml
vendored
Normal file
50
.github/workflows/latest-npm.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: 'Tests: `nvm install-latest-npm`'
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
nodes:
|
||||
name: 'nvm install-latest-npm'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
- "11"
|
||||
- "10"
|
||||
- "9"
|
||||
- "9.2"
|
||||
- "9.1"
|
||||
- "9.0"
|
||||
- "8"
|
||||
- "7"
|
||||
- "6"
|
||||
- "6.1"
|
||||
- "5"
|
||||
- "5.9"
|
||||
- "4"
|
||||
- "4.6"
|
||||
- "4.5"
|
||||
- "4.4"
|
||||
- "3"
|
||||
- "2"
|
||||
- "1"
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'nvm install-latest-npm'
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
skip-ls-check: true
|
||||
skip-install: true
|
||||
shell-command: 'npm --version'
|
||||
|
||||
node:
|
||||
name: 'nvm install-latest-npm'
|
||||
needs: [nodes]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: 'echo tests completed'
|
38
.github/workflows/lint.yml
vendored
Normal file
38
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: 'Tests: linting'
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
eclint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run eclint'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
command: 'eclint'
|
||||
|
||||
dockerfile_lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run dockerfile_lint'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
command: 'dockerfile_lint'
|
||||
|
||||
doctoc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ljharb/actions/node/run@main
|
||||
name: 'npm install && npm run dockerfile_lint'
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
shell-command: |
|
||||
set -e
|
||||
cp README.md README.md.orig
|
||||
npm run doctoc
|
||||
diff -q README.md README.md.orig
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: "Tests: release process"
|
||||
name: 'Tests: release process'
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
|
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: "Tests: shellcheck"
|
||||
name: 'Tests: shellcheck'
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
|
Reference in New Issue
Block a user