0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

feat: refactor test and use verdaccio 6 core modules (#3569)

chore: clean up comments

remove commitlint

update deps

add new tests

test

separate ci

test

test

test

test

test

test

chore: add preprelase

test

test

test

test

test

chore: update deps

Update release-snapshot.yml

Update .npmignore

test

chore: remove @verdaccio/commons-api dep

chore: cleanup

remove normalizeContributors

remove validateMetadata

fix test

clean up getLocalRegistryTarballUri

Update store.spec.ts

clean up convertDistRemoteToLocalTarballUrls

chore: update libraries

reuse getPublic url

clean up

Update jest.config.js

Update jest.config.js

update nvmrc

add tests
This commit is contained in:
Juan Picado 2023-01-28 14:39:37 +01:00 committed by GitHub
parent 50a20e922b
commit bae430fe24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
341 changed files with 7673 additions and 5605 deletions

View file

@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: [14, 16, 18, 19]
node_version: [12, 14, 16, 18, 19]
runs-on: ubuntu-latest
@ -23,9 +23,13 @@ jobs:
run: yarn install --immutable
- name: Format
run: yarn format:check
- name: Lint
## eslint does not support node 12
if: "!contains(matrix.node_version, '12')"
run: yarn lint
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Test
## jest does not support node 12
if: "!contains(matrix.node_version, '12')"
run: yarn test

31
.github/workflows/release-snapshot.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Release Canary 5.x
on:
workflow_dispatch:
push:
branches:
- 5.x
- 'jota/**'
- 'canary/**'
- '5x-refactor-test'
jobs:
release:
name: Release Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- name: Use Node (latest)
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
with:
node-version-file: '.nvmrc'
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Bump up package
run: npm version prerelease --no-git-tag-version --preid $(date +%s%N)
- name: Publish
run: sh scripts/publish-prerelease.sh
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.VERDACCIO_REGISTRY_TOKEN_CANARY }}
REGISTRY_URL: registry.verdaccio.org

View file

@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit "$1"

View file

@ -42,3 +42,7 @@ storage_default_storage/
docker-bin/
yarn-plugins/
tsconfig.json
CHANGELOG.md
SECURITY.md
CONTRIBUTING.md
CONTRIBUTORS.md

2
.nvmrc
View file

@ -1 +1 @@
14
16

4230
.pnp.cjs generated

File diff suppressed because it is too large Load diff

1795
.pnp.loader.mjs generated

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more