2020-06-18 23:01:57 +02:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 3 * * 5'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
name: 'E2E Angular CLI with verdaccio'
|
|
|
|
jobs:
|
|
|
|
# todo: fix yarn global issue, cannot find ng
|
|
|
|
# yarn:
|
|
|
|
# name: 'yarn:angular example'
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# steps:
|
2020-10-03 14:53:41 +02:00
|
|
|
# - uses: actions/checkout@v2.3.3
|
2020-06-18 23:01:57 +02:00
|
|
|
#
|
|
|
|
# - name: 'Use Node.js 10.x'
|
2021-03-03 07:56:12 +01:00
|
|
|
# uses: actions/setup-node@v2.1.5
|
2020-06-18 23:01:57 +02:00
|
|
|
# with:
|
|
|
|
# node-version: 10.x
|
|
|
|
# - name: Install Dependencies
|
|
|
|
# run: yarn install --pure-lockfile
|
|
|
|
# - name: 'Run verdaccio in the background'
|
|
|
|
# run: |
|
|
|
|
# nohup node ./scripts/run-verdaccio.js &
|
|
|
|
# - name: 'Ping to verdaccio'
|
|
|
|
# run: |
|
|
|
|
# npm ping --registry http://localhost:4873
|
|
|
|
# - name: 'Running the integration test'
|
|
|
|
# run: |
|
|
|
|
# source scripts/e2e-setup-ci.sh
|
|
|
|
# yarn init --yes
|
|
|
|
#
|
|
|
|
# yarn global add @angular/cli
|
|
|
|
# which nodemon
|
|
|
|
# ng new verdaccio-angular --interactive=false
|
|
|
|
#
|
|
|
|
# cd verdaccio-angular
|
|
|
|
# echo "registry=http://localhost:4873" > ~/.npmrc
|
|
|
|
# yarn add @angular-devkit/core@next @babel/preset-env @babel/core -D
|
|
|
|
#
|
|
|
|
# ng build --aot
|
|
|
|
npm:
|
|
|
|
name: 'npm:angular example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-10-03 14:53:41 +02:00
|
|
|
- uses: actions/checkout@v2.3.3
|
2020-06-18 23:01:57 +02:00
|
|
|
|
2020-10-09 18:53:44 +02:00
|
|
|
- name: 'Use Node.js 14.x'
|
2021-03-03 07:56:12 +01:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2020-06-18 23:01:57 +02:00
|
|
|
with:
|
2020-10-09 18:53:44 +02:00
|
|
|
node-version: 14.x
|
2020-06-18 23:01:57 +02:00
|
|
|
- name: 'install latest npm'
|
2021-02-25 21:06:10 +01:00
|
|
|
run: npm i -g npm@latest-6
|
2020-06-18 23:01:57 +02:00
|
|
|
- name: Install Dependencies
|
2020-10-11 19:06:21 +02:00
|
|
|
run: yarn install
|
2020-06-18 23:01:57 +02:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2020-10-09 18:53:44 +02:00
|
|
|
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
2020-06-18 23:01:57 +02: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="http"
|
|
|
|
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
|
2020-10-09 18:53:44 +02:00
|
|
|
npm7:
|
|
|
|
name: 'npm7:angular example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.3
|
|
|
|
|
|
|
|
- name: 'Use Node.js 14.x'
|
2021-03-03 07:56:12 +01:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2020-10-09 18:53:44 +02:00
|
|
|
with:
|
|
|
|
node-version: 14.x
|
|
|
|
- name: 'install latest npm'
|
|
|
|
run: npm i -g npm@next-7
|
|
|
|
- name: Install Dependencies
|
2020-10-11 19:06:21 +02:00
|
|
|
run: yarn install
|
2020-10-09 18:53:44 +02:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
|
|
|
nohup 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
|
|
|
|
|
2020-10-11 19:06:21 +02:00
|
|
|
npm run ng build --aot
|
2020-06-18 23:01:57 +02:00
|
|
|
|
|
|
|
# pnpm throws errors worth to check why
|
|
|
|
# pnpm:
|
|
|
|
# name: 'pnpm:angular example'
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# steps:
|
2020-10-03 14:53:41 +02:00
|
|
|
# - uses: actions/checkout@v2.3.3
|
2020-06-18 23:01:57 +02:00
|
|
|
#
|
|
|
|
# - name: 'Use Node.js 10.x'
|
2020-07-31 07:55:04 +02:00
|
|
|
# uses: actions/setup-node@v2.1.1
|
2020-06-18 23:01:57 +02:00
|
|
|
# with:
|
|
|
|
# node-version: 10.x
|
|
|
|
# - name: 'install latest pnpm'
|
|
|
|
# run: npm i -g pnpm
|
|
|
|
# - name: Install Dependencies
|
|
|
|
# run: yarn install --pure-lockfile
|
|
|
|
# - name: 'Run verdaccio in the background'
|
|
|
|
# run: |
|
|
|
|
# nohup node ./scripts/run-verdaccio.js &
|
|
|
|
# - name: 'Ping to verdaccio'
|
|
|
|
# run: |
|
|
|
|
# pnpm ping --registry http://localhost:4873
|
|
|
|
# - name: 'Running the integration test'
|
|
|
|
# run: |
|
|
|
|
# source scripts/e2e-setup-ci.sh
|
|
|
|
# pnpm init --force
|
|
|
|
#
|
|
|
|
# pnpm install -g @angular/cli
|
|
|
|
# ng new verdaccio-angular --interactive=false
|
|
|
|
#
|
|
|
|
# cd verdaccio-angular
|
|
|
|
# echo "registry=http://localhost:4873" > ~/.npmrc
|
|
|
|
# pnpm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
|
|
|
#
|
|
|
|
# pnpm run ng build --aot
|