2024-09-22 09:16:53 -05:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
npm9:
|
|
|
|
name: 'npm9:gatsby example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-09-22 09:16:53 -05:00
|
|
|
|
|
|
|
- name: 'Use Node.js'
|
2024-10-01 15:22:01 -05:00
|
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
2024-09-22 09:16:53 -05:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: 'install npm 9'
|
|
|
|
run: npm i -g npm@next-9
|
|
|
|
- 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="info"
|
|
|
|
fetch-retries=10
|
|
|
|
fetch-retry-factor=2
|
|
|
|
fetch-retry-mintimeout=10000
|
|
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
|
|
npm config list
|
|
|
|
npm i -g gatsby@latest
|
|
|
|
gatsby new my-gatsby
|
|
|
|
cd my-gatsby
|
|
|
|
npm run build
|
|
|
|
npm10:
|
|
|
|
name: 'npm10:gatsby example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-11-02 04:02:18 -05:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-09-22 09:16:53 -05:00
|
|
|
|
|
|
|
- name: 'Use Node.js'
|
2024-10-01 15:22:01 -05:00
|
|
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
|
2024-09-22 09:16:53 -05:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: 'install npm 10'
|
|
|
|
run: npm i -g npm@next-10
|
|
|
|
- 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="info"
|
|
|
|
fetch-retries=10
|
|
|
|
fetch-retry-factor=2
|
|
|
|
fetch-retry-mintimeout=10000
|
|
|
|
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
|
|
|
npm config list
|
|
|
|
npm i -g gatsby@latest
|
|
|
|
gatsby new my-gatsby
|
|
|
|
cd my-gatsby
|
|
|
|
npm run build
|