-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into npm-registry-fetch
- Loading branch information
Showing
67 changed files
with
6,446 additions
and
2,210 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
|
||
env: | ||
FORCE_COLOR: 2 | ||
NODE_COV: 18 | ||
NODE_COV: 20 | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -28,42 +28,38 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [16, 18, 20] | ||
node: [18, 20] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: npm | ||
|
||
# node v14 cannot install from current package-lock.json, so use npm install instea of npm ci. | ||
# Cannot read property 'chalk' of undefined | ||
# Regression: e88617964a009dbb9f5e973f64ff76ad289df68c | ||
- name: Install npm dependencies | ||
run: npm i | ||
if: 'matrix.node == 14' | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
if: 'matrix.node != 14' | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run tests | ||
run: npm run test | ||
- name: E2E Tests | ||
run: npm run test:e2e | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV | ||
|
||
- name: Unit Tests | ||
run: npm run test:unit | ||
if: (!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)) | ||
|
||
- name: Run tests with coverage | ||
run: npx c8 -- npm test | ||
- name: Tests with coverage | ||
run: npx c8 -- npm run test:unit | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV | ||
|
||
- name: Run Coveralls | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV | ||
with: | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
fail=0 | ||
|
||
npm run lint || fail=1 | ||
npm run prettier -- --check || fail=1 | ||
|
||
if [ "$fail" -ne 0 ]; then | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 +1,13 @@ | ||
module.exports = { | ||
format: 'group', | ||
reject: [ | ||
// ESM only modules | ||
// https://github.com/microsoft/TypeScript/issues/46452 | ||
// esm only modules | ||
'find-up', | ||
'get-stdin', | ||
'globby', | ||
/* pin to 4.0.0 to match make-fetch-happen/cacache. */ | ||
'chai', | ||
'p-map', | ||
'remote-git-tags', | ||
'untildify', | ||
// Broken in v6.0.0 | ||
// Working upgrade is in branch 'hosted-git-info', but hold off on merging due to node engine requirements: ^14.17.0 || ^16.13.0 || >=18.0.0 | ||
// https://github.com/npm/hosted-git-info/releases/tag/v6.0.0 | ||
'hosted-git-info', | ||
// Removed support for node v14 in v0.35.0 | ||
'makdownlint-cli', | ||
// manually keep in alignment with pacote's version of make-fetch-happen | ||
'make-fetch-happen', | ||
// major changes required to upgrade to v3 | ||
'spawn-please', | ||
// v0.60.0 breaks cli option description output | ||
// https://github.com/YousefED/typescript-json-schema/issues/568 | ||
'typescript-json-schema', | ||
], | ||
} |
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 @@ | ||
script-shell = bash |
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
Oops, something went wrong.