2020-06-18 23:01:57 +02:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 3 * * 5'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
name: 'E2E Gatsby.js CLI with verdaccio'
|
|
|
|
jobs:
|
2021-12-23 00:14:53 +01:00
|
|
|
npm6:
|
2022-06-02 17:39:49 +02:00
|
|
|
name: 'npm6:gatsby example'
|
2020-06-18 23:01:57 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-12-02 20:16:56 +01:00
|
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
2020-06-18 23:01:57 +02:00
|
|
|
|
2022-11-08 19:45:25 +01:00
|
|
|
- name: 'Use Node.js 18.x'
|
2023-04-22 11:43:42 +02:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2020-06-18 23:01:57 +02:00
|
|
|
with:
|
2022-11-08 19:45:25 +01:00
|
|
|
node-version: 18.x
|
2021-12-23 00:14:53 +01:00
|
|
|
- name: 'install npm 6'
|
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 10:06:21 -07:00
|
|
|
run: yarn install
|
2020-06-18 23:01:57 +02:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 23:13:57 +02:00
|
|
|
nohup yarn 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
|
2020-10-09 09:53:44 -07:00
|
|
|
echo "registry=http://localhost:4873
|
2022-06-02 17:39:49 +02:00
|
|
|
loglevel="warn"
|
2020-10-09 09:53:44 -07:00
|
|
|
fetch-retries=10
|
|
|
|
fetch-retry-factor=2
|
|
|
|
fetch-retry-mintimeout=10000
|
|
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
|
|
npm config list
|
2022-11-08 19:45:25 +01:00
|
|
|
npm i -g gatsby@4.24.7
|
2020-10-09 09:53:44 -07:00
|
|
|
gatsby new my-gatsby
|
2020-06-18 23:01:57 +02:00
|
|
|
cd my-gatsby
|
|
|
|
npm run build
|
2023-02-09 21:42:24 +01:00
|
|
|
npm9:
|
|
|
|
name: 'npm9:gatsby example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-12-02 20:16:56 +01:00
|
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
2023-02-09 21:42:24 +01:00
|
|
|
|
|
|
|
- name: 'Use Node.js 18.x'
|
2023-04-22 11:43:42 +02:00
|
|
|
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
|
2023-02-09 21:42:24 +01:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- name: 'install npm 9'
|
|
|
|
run: npm i -g npm@9.4.2
|
|
|
|
- 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@5.6.0
|
|
|
|
gatsby new my-gatsby
|
|
|
|
cd my-gatsby
|
|
|
|
npm run build
|