2024-09-22 09:16:53 -05:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
docker_tag:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'Docker tag to use for the verdaccio image'
|
|
|
|
default: '5'
|
2024-09-22 11:42:17 -05:00
|
|
|
module_tag:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
description: 'Npmjs module tag to use for the verdaccio image'
|
|
|
|
default: '@latest'
|
2024-09-22 09:16:53 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 05:38:10 -05:00
|
|
|
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
2024-09-22 09:16:53 -05:00
|
|
|
with:
|
2024-09-22 11:42:17 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2024-09-22 09:16:53 -05:00
|
|
|
- name: Docker test
|
|
|
|
run: |
|
|
|
|
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:${{ inputs.docker_tag }}
|
|
|
|
- name: verdaccio cli
|
2024-09-22 11:42:17 -05:00
|
|
|
run: npm install -g verdaccio${{inputs.module_tag }} --registry http://localhost:4873
|
2024-09-22 09:16:53 -05:00
|
|
|
- name: gastby cli
|
|
|
|
run: npm install -g gatsby-cli --registry http://localhost:4873
|
|
|
|
- name: netlify cli
|
|
|
|
run: npm install -g netlify-cli --registry http://localhost:4873
|
|
|
|
- name: angular cli
|
|
|
|
run: npm install -g @angular/cli --registry http://localhost:4873
|