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:
authorRuy Adorno <ruyadorno@hotmail.com>2021-06-07 22:24:33 +0300
committerGar <gar+gh@danger.computer>2021-06-11 23:52:41 +0300
commite5abf2a2171d95bafc0993f337230d2b6633a6ed (patch)
tree94a719a44f8336ea92c6beeffdbe8955ede9881e /.github
parent40829ec40c33a6d23f18715e60e3395bdcb0467e (diff)
chore(libnpmdiff): added as workspace
- Setup ./packages/* as workspaces - Moved source from: https://github.com/npm/libnpmdiff to ./packages/libnpmdiff - Added CI target for workspaces Relates to: https://github.com/npm/statusboard/issues/362 PR-URL: https://github.com/npm/cli/pull/3386 Credit: @ruyadorno Close: #3386 Reviewed-by: @wraithgar
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 78c2926af..3b622ed82 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -79,6 +79,47 @@ jobs:
env:
DEPLOY_VERSION: testing
+ workspaces-tests:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: [10.x, 12.x, 14.x, 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@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node . install --ignore-scripts --no-audit
+ node . rebuild
+
+ - name: Run workspaces tests
+ run: node . test -w ./packages -- --no-check-coverage -t600 -Rbase -c
+ env:
+ DEPLOY_VERSION: testing
+
build:
strategy:
fail-fast: false