mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
42194c7302
* feat: run server init as promise * chore: format * fix: format * fix: format * fix: restore files * fix: restore files * fix: disable steps * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli * fix: init log on cli
114 lines
3.3 KiB
YAML
114 lines
3.3 KiB
YAML
on:
|
|
schedule:
|
|
- cron: '0 3 * * 5'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
name: 'E2E Gatsby.js CLI with verdaccio'
|
|
jobs:
|
|
npm6:
|
|
name: 'npm6:gatsby example'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.0.2
|
|
|
|
- name: 'Use Node.js 14.x'
|
|
uses: actions/setup-node@v2.5.1
|
|
with:
|
|
node-version: 14.x
|
|
- name: 'install npm 6'
|
|
run: npm i -g npm@latest-6
|
|
- 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
|
|
loglevel="warn"
|
|
fetch-retries=10
|
|
fetch-retry-factor=2
|
|
fetch-retry-mintimeout=10000
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
npm config list
|
|
npm i -g gatsby
|
|
gatsby new my-gatsby
|
|
cd my-gatsby
|
|
npm run build
|
|
npm7:
|
|
name: 'npm7:gatsby example'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.0.2
|
|
|
|
- name: 'Use Node.js 14.x'
|
|
uses: actions/setup-node@v2.5.1
|
|
with:
|
|
node-version: 14.x
|
|
- name: 'install npm 7'
|
|
run: npm i -g npm@latest-7
|
|
- 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
|
|
loglevel="silent"
|
|
fetch-retries=10
|
|
fetch-retry-factor=2
|
|
fetch-retry-mintimeout=10000
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
npm config list
|
|
npm i -g gatsby
|
|
gatsby new my-gatsby
|
|
cd my-gatsby
|
|
npm run build
|
|
npm8:
|
|
name: 'npm8:gatsby example'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.0.2
|
|
|
|
- name: 'Use Node.js 16.x'
|
|
uses: actions/setup-node@v2.5.1
|
|
with:
|
|
node-version: 16.x
|
|
- name: 'install npm 8'
|
|
run: npm i -g npm@next-8
|
|
- 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
|
|
loglevel="silent"
|
|
fetch-retries=10
|
|
fetch-retry-factor=2
|
|
fetch-retry-mintimeout=10000
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
npm config list
|
|
npm i -g gatsby
|
|
gatsby new my-gatsby
|
|
cd my-gatsby
|
|
npm run build
|