2024-06-16 18:36:20 +02:00
|
|
|
name: E2E Generator Verdaccio Plugin
|
|
|
|
|
|
|
|
on:
|
2024-12-29 18:55:34 +01:00
|
|
|
# pull_request:
|
2024-06-16 18:36:20 +02:00
|
|
|
workflow_dispatch:
|
2024-12-20 09:52:34 +01:00
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - 'master'
|
2024-08-03 10:35:46 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: generator-plugin-${{ github.ref }}
|
2024-11-28 10:53:05 +01:00
|
|
|
cancel-in-progress: true
|
2024-08-03 10:35:46 +02:00
|
|
|
|
2024-06-16 18:36:20 +02:00
|
|
|
jobs:
|
|
|
|
e2e-plugin-generator:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-11-28 10:53:05 +01:00
|
|
|
node-version: [20, 22, 23]
|
2024-06-16 18:36:20 +02:00
|
|
|
steps:
|
2024-11-02 10:02:18 +01:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 10:53:05 +01:00
|
|
|
- name: Build application with Node ${{ matrix.node_version }}
|
|
|
|
uses: ./.github/actions/build-app
|
2024-06-16 18:36:20 +02:00
|
|
|
with:
|
2024-11-28 10:53:05 +01:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2024-06-16 18:36:20 +02:00
|
|
|
- name: install verdaccio
|
|
|
|
run: npm install -g verdaccio@5
|
|
|
|
- name: Start server
|
|
|
|
run: verdaccio -c e2e/docker/generator-e2e/generator.yaml &
|
|
|
|
- name: ping server
|
|
|
|
run: curl http://localhost:4873/-/ping
|
|
|
|
- name: login
|
|
|
|
run: npx npm-cli-login -u test -p test -e test@domain.test -r http://localhost:4873
|
|
|
|
- name: publish
|
|
|
|
run: pnpm local:publish
|
|
|
|
- name: install yeoman
|
2024-07-07 19:33:22 +02:00
|
|
|
run: npm install -g yo@4 --loglevel=info
|
2024-06-16 18:36:20 +02:00
|
|
|
- name: install generator
|
2024-07-07 19:33:22 +02:00
|
|
|
run: npm install -g generator-verdaccio-plugin --loglevel=info --registry http://localhost:4873
|
2024-11-28 10:53:05 +01:00
|
|
|
# Future: add a test to verify the plugin is working with prompt
|