2022-09-18 14:47:23 -05:00
|
|
|
name: E2E CLI
|
|
|
|
|
2022-09-24 04:30:16 -05:00
|
|
|
on: [pull_request]
|
2022-09-18 14:47:23 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2024-02-18 05:33:07 -05:00
|
|
|
concurrency:
|
2024-02-18 15:08:17 -05:00
|
|
|
group: e2e-ci-${{ github.ref }}
|
2024-02-18 05:33:07 -05:00
|
|
|
cancel-in-progress: true
|
2022-09-18 14:47:23 -05:00
|
|
|
jobs:
|
|
|
|
prepare:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: setup e2e verdaccio
|
|
|
|
services:
|
|
|
|
verdaccio:
|
2023-04-17 00:49:45 -05:00
|
|
|
image: verdaccio/verdaccio:nightly-master
|
2022-09-18 14:47:23 -05:00
|
|
|
ports:
|
|
|
|
- 4873:4873
|
|
|
|
env:
|
|
|
|
NODE_ENV: production
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 04:53:05 -05:00
|
|
|
- name: Install dependencies with a custom registry
|
|
|
|
uses: ./.github/actions/install-app
|
2022-09-18 14:47:23 -05:00
|
|
|
build:
|
|
|
|
needs: [prepare]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 04:53:05 -05:00
|
|
|
- name: Build application with Node ${{ matrix.node_version }}
|
|
|
|
uses: ./.github/actions/build-app
|
2022-09-18 14:47:23 -05:00
|
|
|
with:
|
2024-11-28 04:53:05 -05:00
|
|
|
node-version: ${{ matrix.node_version }}
|
2022-09-18 14:47:23 -05:00
|
|
|
- name: Cache packages
|
2024-11-28 04:53:05 -05:00
|
|
|
uses: ./.github/actions/cache-packages
|
2023-12-31 08:34:29 -05:00
|
|
|
e2e-cli-npm:
|
2022-09-18 14:47:23 -05:00
|
|
|
needs: [prepare, build]
|
|
|
|
strategy:
|
2024-11-16 14:39:47 -05:00
|
|
|
fail-fast: false
|
2022-09-18 14:47:23 -05:00
|
|
|
matrix:
|
2023-10-23 14:49:18 -05:00
|
|
|
pkg:
|
|
|
|
[
|
|
|
|
npm6,
|
|
|
|
npm7,
|
|
|
|
npm8,
|
|
|
|
npm9,
|
2023-12-31 08:34:29 -05:00
|
|
|
npm10
|
|
|
|
]
|
2024-11-28 04:53:05 -05:00
|
|
|
node: [18, 23]
|
2023-12-31 08:34:29 -05:00
|
|
|
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 04:53:05 -05:00
|
|
|
- name: Install dependencies with a custom registry version ${{ inputs.node-version }}
|
|
|
|
uses: ./.github/actions/install-app-node
|
2023-12-31 08:34:29 -05:00
|
|
|
with:
|
2024-11-28 04:53:05 -05:00
|
|
|
node-version: ${{ inputs.node_version }}
|
|
|
|
reporter: 'default'
|
|
|
|
loglevel: 'debug'
|
|
|
|
- name: Restore cache pnpm store
|
|
|
|
uses: ./.github/actions/cache-packages
|
2023-12-31 08:34:29 -05:00
|
|
|
- name: Test CLI
|
|
|
|
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
2024-03-23 05:32:13 -05:00
|
|
|
|
|
|
|
e2e-cli-pnpm:
|
|
|
|
needs: [prepare, build]
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
pkg:
|
|
|
|
[
|
|
|
|
pnpm8,
|
|
|
|
pnpm9,
|
2024-11-16 14:39:47 -05:00
|
|
|
pnpm10,
|
2024-03-23 05:32:13 -05:00
|
|
|
]
|
2024-11-28 04:53:05 -05:00
|
|
|
node: [18, 23]
|
2024-03-23 05:32:13 -05:00
|
|
|
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 04:53:05 -05:00
|
|
|
- name: Install dependencies with a custom registry version ${{ inputs.node-version }}
|
|
|
|
uses: ./.github/actions/install-app-node
|
2024-03-23 05:32:13 -05:00
|
|
|
with:
|
2024-11-28 04:53:05 -05:00
|
|
|
node-version: ${{ inputs.node_version }}
|
|
|
|
reporter: 'default'
|
|
|
|
loglevel: 'debug'
|
|
|
|
- name: Restore cache pnpm store
|
|
|
|
uses: ./.github/actions/cache-packages
|
2024-03-23 05:32:13 -05:00
|
|
|
- name: Test CLI
|
|
|
|
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
2023-12-31 08:34:29 -05:00
|
|
|
e2e-cli-yarn:
|
|
|
|
needs: [prepare, build]
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
pkg:
|
2024-11-16 14:39:47 -05:00
|
|
|
[
|
2023-10-23 14:49:18 -05:00
|
|
|
yarn1,
|
|
|
|
yarn2,
|
|
|
|
yarn3,
|
2023-12-31 08:34:29 -05:00
|
|
|
yarn4
|
2023-10-23 14:49:18 -05:00
|
|
|
]
|
2024-11-28 04:53:05 -05:00
|
|
|
node: [18, 23]
|
2023-01-29 09:08:50 -05:00
|
|
|
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
2022-09-18 14:47:23 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-11-28 04:53:05 -05:00
|
|
|
- name: Install dependencies with a custom registry version ${{ inputs.node-version }}
|
|
|
|
uses: ./.github/actions/install-app-node
|
2022-09-18 14:47:23 -05:00
|
|
|
with:
|
2024-11-28 04:53:05 -05:00
|
|
|
node-version: ${{ inputs.node_version }}
|
|
|
|
reporter: 'default'
|
|
|
|
loglevel: 'debug'
|
|
|
|
- name: Restore cache pnpm store
|
|
|
|
uses: ./.github/actions/cache-packages
|
2022-09-18 14:47:23 -05:00
|
|
|
- name: Test CLI
|
|
|
|
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
2024-11-16 14:39:47 -05:00
|
|
|
|