forked from niki-timofe/verdaccio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add missing os matrix (verdaccio#1928)
- Loading branch information
1 parent
d981c1d
commit 5e28d40
Showing
12 changed files
with
194 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.