mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
255cabc790
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...d632683dd7
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
docker_tag:
|
|
required: true
|
|
type: string
|
|
description: 'Docker tag to use for the verdaccio image'
|
|
default: '5'
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
|
- name: Use Node (latest)
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- name: Docker test
|
|
run: |
|
|
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:${{ inputs.docker_tag }}
|
|
- name: login
|
|
run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873
|
|
- name: Install
|
|
run: yarn
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Types
|
|
run: yarn code:types
|
|
- name: Bump up package
|
|
run: npm version prerelease --no-git-tag-version --preid $(date +%s%N)
|
|
- name: publish verdaccio
|
|
run: npm publish --registry http://localhost:4873
|
|
- name: install verdaccio
|
|
run: npm i -g verdaccio --loglevel info --registry http://localhost:4873
|
|
- name: verdaccio version
|
|
run: verdaccio --version
|
|
- name: 'Running the integration test'
|
|
run: |
|
|
source scripts/e2e-setup-ci.sh
|
|
npm init --force
|
|
npm install jest --registry http://localhost:4873
|
|
npm install verdaccio --registry http://localhost:4873
|
|
echo "test('require module should works', () => { const {runServer} = require('verdaccio') });" | tee module.spec.js
|
|
cat module.spec.js
|
|
yarn jest
|