Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2021-12-16 21:01:56 +0300
committerNathan Fritz <fritzy@github.com>2021-12-16 21:05:19 +0300
commitd7265045730555c03b3142c004c7438e9577028c (patch)
tree035d81b3124bdaa09c21854934bf2b2b50e52e44 /.github
parentd8aac8448e983692cacb427e03f4688cd1b62e30 (diff)
Bring in all libnpm modules + arborist as workspaces (#4166)
Added libnpm workspaces and arborist
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-libnpmaccess.yml76
-rw-r--r--.github/workflows/ci-libnpmdiff.yml6
-rw-r--r--.github/workflows/ci-libnpmexec.yml76
-rw-r--r--.github/workflows/ci-libnpmfund.yml76
-rw-r--r--.github/workflows/ci-libnpmhook.yml76
-rw-r--r--.github/workflows/ci-libnpmorg.yml76
-rw-r--r--.github/workflows/ci-libnpmpack.yml76
-rw-r--r--.github/workflows/ci-libnpmpublish.yml76
-rw-r--r--.github/workflows/ci-libnpmsearch.yml76
-rw-r--r--.github/workflows/ci-libnpmteam.yml76
-rw-r--r--.github/workflows/ci-libnpmversion.yml76
11 files changed, 763 insertions, 3 deletions
diff --git a/.github/workflows/ci-libnpmaccess.yml b/.github/workflows/ci-libnpmaccess.yml
new file mode 100644
index 000000000..3e53466d9
--- /dev/null
+++ b/.github/workflows/ci-libnpmaccess.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmaccess
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmaccess/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmaccess/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmdiff.yml b/.github/workflows/ci-libnpmdiff.yml
index 5f8a20f64..54b08e450 100644
--- a/.github/workflows/ci-libnpmdiff.yml
+++ b/.github/workflows/ci-libnpmdiff.yml
@@ -1,4 +1,4 @@
-name: Node CI libnpmdiff
+name: Node Workspace CI libnpmdiff
on:
pull_request:
@@ -20,10 +20,10 @@ jobs:
steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- - name: Use Node.js 14.x
+ - name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
- node-version: 14.x
+ node-version: 16.x
cache: npm
- name: Install dependencies
run: |
diff --git a/.github/workflows/ci-libnpmexec.yml b/.github/workflows/ci-libnpmexec.yml
new file mode 100644
index 000000000..68d2d2242
--- /dev/null
+++ b/.github/workflows/ci-libnpmexec.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmexec
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmexec/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmexec/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmfund.yml b/.github/workflows/ci-libnpmfund.yml
new file mode 100644
index 000000000..1f97a4f5f
--- /dev/null
+++ b/.github/workflows/ci-libnpmfund.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmfund
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmfund/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmfund/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmhook.yml b/.github/workflows/ci-libnpmhook.yml
new file mode 100644
index 000000000..250baf1a2
--- /dev/null
+++ b/.github/workflows/ci-libnpmhook.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmhook
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmhook/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmhook/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmorg.yml b/.github/workflows/ci-libnpmorg.yml
new file mode 100644
index 000000000..447b764e9
--- /dev/null
+++ b/.github/workflows/ci-libnpmorg.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmorg
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmorg/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmorg/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmpack.yml b/.github/workflows/ci-libnpmpack.yml
new file mode 100644
index 000000000..de574966c
--- /dev/null
+++ b/.github/workflows/ci-libnpmpack.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmpack
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmpack/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmpack/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmpublish.yml b/.github/workflows/ci-libnpmpublish.yml
new file mode 100644
index 000000000..b7bed02e7
--- /dev/null
+++ b/.github/workflows/ci-libnpmpublish.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmpublish
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmpublish/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmpublish/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmsearch.yml b/.github/workflows/ci-libnpmsearch.yml
new file mode 100644
index 000000000..752900795
--- /dev/null
+++ b/.github/workflows/ci-libnpmsearch.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmsearch
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmsearch/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmsearch/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmteam.yml b/.github/workflows/ci-libnpmteam.yml
new file mode 100644
index 000000000..c117c625d
--- /dev/null
+++ b/.github/workflows/ci-libnpmteam.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmteam
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmteam/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmteam/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c
diff --git a/.github/workflows/ci-libnpmversion.yml b/.github/workflows/ci-libnpmversion.yml
new file mode 100644
index 000000000..ce6b73eb9
--- /dev/null
+++ b/.github/workflows/ci-libnpmversion.yml
@@ -0,0 +1,76 @@
+name: Node Workspace CI libnpmversion
+
+on:
+ pull_request:
+ paths:
+ - workspaces/libnpmversion/**
+ branches:
+ - '*'
+ push:
+ paths:
+ - workspaces/libnpmversion/**
+ branches:
+ - release-next
+ - latest
+ workflow_dispatch:
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ cache: npm
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+ - name: Run linting
+ run: node ./bin/npm-cli.js run posttest -w libnpmdiff
+ env:
+ DEPLOY_VERSION: testing
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node ./bin/npm-cli.js install --ignore-scripts --no-audit
+ node ./bin/npm-cli.js rebuild
+
+ # Run the tests, but not if we're just gonna do coveralls later anyway
+ - name: Run Tap tests
+ run: node ./bin/npm-cli.js run -w libnpmdiff --ignore-scripts test -- -t600 -Rbase -c