Skip to content

Commit

Permalink
chore(libnpmdiff): added as workspace
Browse files Browse the repository at this point in the history
- Setup ./packages/* as workspaces
- Moved source from: https://github.com/npm/libnpmdiff to
./packages/libnpmdiff
- Added CI target for workspaces

Relates to: npm/statusboard#362
  • Loading branch information
ruyadorno committed Jun 8, 2021
1 parent a49b8d7 commit 4331063
Show file tree
Hide file tree
Showing 26 changed files with 1,824 additions and 59 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions node_modules/libnpmdiff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

134 changes: 82 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"name": "npm",
"description": "a package manager for JavaScript",
"workspaces": [
"docs"
"docs",
"packages/*"
],
"keywords": [
"install",
Expand Down
Loading

0 comments on commit 4331063

Please sign in to comment.