2020-06-18 16:01:57 -05:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
name: 'E2E Angular CLI with verdaccio'
|
|
|
|
jobs:
|
2023-10-29 12:11:41 -05:00
|
|
|
npm7:
|
|
|
|
name: 'npm7:angular example'
|
2020-06-18 16:01:57 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-06-17 02:19:20 -05:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2020-06-18 16:01:57 -05:00
|
|
|
|
2023-09-24 02:26:07 -05:00
|
|
|
- name: 'Use Node.js'
|
2023-04-22 04:43:42 -05:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2020-06-18 16:01:57 -05:00
|
|
|
with:
|
2023-09-24 02:26:07 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'install latest npm'
|
2023-10-29 12:11:41 -05:00
|
|
|
run: npm i -g npm@next-7
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
npm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
|
|
|
echo "registry=http://localhost:4873" > ~/.npmrc
|
2023-10-29 12:11:41 -05:00
|
|
|
npm config set loglevel="silent"
|
2020-06-18 16:01:57 -05:00
|
|
|
npm config set fetch-retries="5"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
|
|
|
npm install -g @angular/cli
|
|
|
|
ng new verdaccio-angular --interactive=false
|
|
|
|
|
|
|
|
cd verdaccio-angular
|
|
|
|
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
|
|
|
|
|
|
|
npm run ng build --aot
|
2023-10-29 12:11:41 -05:00
|
|
|
npm8:
|
|
|
|
name: 'npm8:angular example'
|
2020-10-09 11:53:44 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-06-17 02:19:20 -05:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2020-10-09 11:53:44 -05:00
|
|
|
|
2023-09-24 02:26:07 -05:00
|
|
|
- name: 'Use Node.js'
|
2023-04-22 04:43:42 -05:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2020-10-09 11:53:44 -05:00
|
|
|
with:
|
2023-09-24 02:26:07 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: 'install latest npm'
|
2023-10-29 12:11:41 -05:00
|
|
|
run: npm i -g npm@next-8
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: Install Dependencies
|
2021-12-22 18:14:53 -05:00
|
|
|
run: yarn install
|
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
|
|
|
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
npm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
|
|
|
echo "registry=http://localhost:4873" > ~/.npmrc
|
|
|
|
npm config set loglevel="silent"
|
|
|
|
npm config set fetch-retries="5"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
|
|
|
npm install -g @angular/cli
|
|
|
|
ng new verdaccio-angular --interactive=false
|
|
|
|
|
|
|
|
cd verdaccio-angular
|
|
|
|
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
|
|
|
|
|
|
|
npm run ng build --aot
|
2023-10-29 12:11:41 -05:00
|
|
|
npm9:
|
|
|
|
name: 'npm9:angular example'
|
2021-12-22 18:14:53 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-06-17 02:19:20 -05:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2021-12-22 18:14:53 -05:00
|
|
|
|
2023-09-24 02:26:07 -05:00
|
|
|
- name: 'Use Node.js'
|
2023-04-22 04:43:42 -05:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2021-12-22 18:14:53 -05:00
|
|
|
with:
|
2023-09-24 02:26:07 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2023-10-29 12:11:41 -05:00
|
|
|
- name: 'install latest npm 9'
|
|
|
|
run: npm i -g npm@next-9
|
2021-12-22 18:14:53 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
npm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
|
|
|
echo "registry=http://localhost:4873" > ~/.npmrc
|
|
|
|
npm config set loglevel="silent"
|
|
|
|
npm config set fetch-retries="5"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
|
|
|
npm install -g @angular/cli
|
|
|
|
ng new verdaccio-angular --interactive=false
|
|
|
|
|
|
|
|
cd verdaccio-angular
|
|
|
|
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
2020-10-11 12:06:21 -05:00
|
|
|
npm run ng build --aot
|
2023-10-29 12:11:41 -05:00
|
|
|
npm10:
|
|
|
|
name: 'npm10:angular example'
|
2023-02-09 15:42:24 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-06-17 02:19:20 -05:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2023-02-09 15:42:24 -05:00
|
|
|
|
2023-09-24 02:26:07 -05:00
|
|
|
- name: 'Use Node.js'
|
2023-04-22 04:43:42 -05:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2023-02-09 15:42:24 -05:00
|
|
|
with:
|
2023-09-24 02:26:07 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2023-10-29 12:11:41 -05:00
|
|
|
- name: 'install latest npm 10'
|
|
|
|
run: npm i -g npm@next-10
|
2023-02-09 15:42:24 -05:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
|
|
|
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
npm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
|
|
|
echo "registry=http://localhost:4873" > ~/.npmrc
|
2023-10-29 12:11:41 -05:00
|
|
|
npm config set loglevel="info"
|
2023-02-09 15:42:24 -05:00
|
|
|
npm config set fetch-retries="5"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
|
|
|
npm install -g @angular/cli
|
|
|
|
ng new verdaccio-angular --interactive=false
|
|
|
|
|
|
|
|
cd verdaccio-angular
|
|
|
|
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
|
|
|
|
2023-03-31 01:28:41 -05:00
|
|
|
npm run ng build --aot
|