Skip to content

Commit

Permalink
build: add missing os matrix (verdaccio#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
n4bb12 authored and juanpicado committed Apr 9, 2021
1 parent d981c1d commit 5e28d40
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 304 deletions.
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ end_of_line = lf
insert_final_newline = true

# 2 space indentation
[{.,}*.{js,jsx,yml,yaml}]
[{.,}*.{ts,tsx,js,jsx,yml,yaml}]
indent_style = space
indent_size = 2
quote_type = single
144 changes: 61 additions & 83 deletions .github/disabled/e2e-angular-cli-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,74 @@
on:
schedule:
- cron: '0 3 * * 5'
- 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: ${{ matrix.os }}
#
# steps:
# - uses: actions/[email protected]
#
# - name: 'Use Node.js 10.x'
# uses: actions/[email protected]
# 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
# todo: fix yarn global issue, cannot find ng
# yarn:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / yarn:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/[email protected]
#
# - name: 'Use Node.js 10.x'
# uses: actions/[email protected]
# 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'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

name: '${{ matrix.os }} / npm:angular example'
runs-on: ${{ matrix.os }}

steps:
- uses: actions/[email protected].3
- uses: actions/[email protected].1

- name: 'Use Node.js 14.x'
uses: actions/[email protected].5
- name: 'Use Node.js 10.x'
uses: actions/[email protected].1
with:
node-version: 14.x
node-version: 10.x
- name: 'install latest npm'
run: npm i -g npm@latest-6
run: npm i -g npm
- name: Install Dependencies
run: yarn install
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
Expand All @@ -77,52 +87,20 @@ jobs:
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
npm7:
name: 'npm7:angular example'
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: 'Use Node.js 14.x'
uses: actions/[email protected]
with:
node-version: 14.x
- name: 'install latest npm'
run: npm i -g npm@next-7
- name: Install Dependencies
run: yarn install
- 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
npm run ng build --aot
# pnpm throws errors worth to check why
# pnpm:
# name: 'pnpm:angular example'
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / pnpm:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/[email protected].3
# - uses: actions/[email protected].1
#
# - name: 'Use Node.js 10.x'
# uses: actions/[email protected]
Expand Down
7 changes: 6 additions & 1 deletion .github/disabled/e2e-gatsbyjs-cli-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ on:
name: 'E2E Gatsby.js CLI with verdaccio'
jobs:
npm:
name: 'npm:gatsby example'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

name: '${{ matrix.os }} / npm:gatsby example'
runs-on: ${{ matrix.os }}

steps:
Expand Down
Loading

0 comments on commit 5e28d40

Please sign in to comment.