2020-06-18 16:01:57 -05:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 3 * * 5'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
name: 'E2E Gatsby.js CLI with verdaccio'
|
|
|
|
jobs:
|
|
|
|
npm:
|
|
|
|
name: 'npm:gatsby example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-10-03 07:53:41 -05:00
|
|
|
- uses: actions/checkout@v2.3.3
|
2020-06-18 16:01:57 -05:00
|
|
|
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: 'Use Node.js 14.x'
|
2020-07-31 00:55:04 -05:00
|
|
|
uses: actions/setup-node@v2.1.1
|
2020-06-18 16:01:57 -05:00
|
|
|
with:
|
2020-10-09 11:53:44 -05:00
|
|
|
node-version: 14.x
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'install latest npm'
|
|
|
|
run: npm i -g npm
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn install --pure-lockfile
|
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2020-10-09 11:53:44 -05:00
|
|
|
nohup 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
|
2020-10-09 11:53:44 -05:00
|
|
|
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
|
2020-06-18 16:01:57 -05:00
|
|
|
npm i -g gatsby
|
2020-10-09 11:53:44 -05:00
|
|
|
gatsby new my-gatsby
|
2020-06-18 16:01:57 -05:00
|
|
|
cd my-gatsby
|
|
|
|
npm run build
|