Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate github actions for workspaces
PR-URL: #4050 Credit: @fritzy Close: #4050 Reviewed-by: @wraithgar PR-URL: #4050 Credit: @fritzy Close: #4050 Reviewed-by: @wraithgar
- Loading branch information
Showing
29 changed files
with
162 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Node CI docs | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- docs/** | ||
branches: | ||
- '*' | ||
push: | ||
paths: | ||
- docs/** | ||
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 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.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 lint -w docs | ||
env: | ||
DEPLOY_VERSION: testing | ||
|
||
check_docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
cache: npm | ||
- name: Install dependencies | ||
run: | | ||
node ./bin/npm-cli.js install --ignore-scripts --no-audit | ||
- name: Rebuild the docs | ||
run: make freshdocs | ||
- name: Git should not be dirty | ||
run: node scripts/git-dirty.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Node CI libnpmdiff | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- workspaces/libnpmdiff/** | ||
branches: | ||
- '*' | ||
push: | ||
paths: | ||
- workspaces/libnpmdiff/** | ||
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 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../packages/libnpmdiff | ||
../workspaces/libnpmdiff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.