Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: alternative package registry #1186

Merged
merged 14 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/npm-ls_demo-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
fail-fast: false # gather all the results !
matrix:
subject:
- bundled-dependencies
- dev-dependencies
- juice-shop
- local-dependencies
- local-workspaces
- package-integrity
- package-with-build-id
- alternative-package-registry
# - bundled-dependencies
# - dev-dependencies
# - juice-shop
# - local-dependencies
# - local-workspaces
# - package-integrity
# - package-with-build-id
npm-version:
## see https://www.npmjs.com/package/npm?activeTab=versions
## see also: https://github.com/npm/cli/releases
Expand All @@ -38,15 +39,18 @@ jobs:
## action based on https://github.com/actions/node-versions/releases
## see also: https://nodejs.org/en/about/releases/
- '22' # Current
#- '20' # Active LTS
#- '18'
#- '16'
#- '14'
- '20' # Active LTS
- '18'
- '16'
- '14'
os:
- ubuntu-latest
- windows-latest
- macos-latest
exclude:
- # macos-latest no longer supports node14
os: macos-latest
node-version: '14'
- # npm10 requires node ^18.17.0 || >=20.5.0
npm-version: '10'
node-version: '16'
Expand Down Expand Up @@ -114,6 +118,7 @@ jobs:
combine-results:
name: combine results
needs: [ 'demo-results' ]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- name: fetch and combine RESULTS
Expand Down
32 changes: 32 additions & 0 deletions demo/alternative-package-registry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Integration test: alternative package registry

*ATTENTION*: this demo might use known vulnerable dependencies for showcasing purposes.

Install dependencies from alternative package repositories and see how they behave.

This setup has `@act/act` installed from alternative package registry <https:/jsr.io>.

## remarks

* In *npm6* the `_resolved` property is set to the appropriate value in a dependency.
* In *npm7* the `resolved` property is set to the appropriate value in a dependency.

## output

see [demo snapshots](../../tests/_data/npm-ls_demo-results/alternative-package-registry).

Output of `npm ls --json -a -l` look like this:

```json5
{
// ...
"dependencies": {
"@act/act": {
"name": "@jsr/act__act",
"version": "0.1.3",
"resolved": "https://npm.jsr.io/~/11/@jsr/act__act/0.1.3.tgz",
// ...
}
}
}
```

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

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

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

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

Loading
Loading