2020-06-18 16:01:57 -05:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 3 * * 5'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
name: 'E2E Jest with verdaccio'
|
|
|
|
jobs:
|
|
|
|
yarn:
|
|
|
|
name: 'yarn:jest example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2020-06-18 16:01:57 -05:00
|
|
|
|
2021-03-28 03:40:52 -05:00
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2020-06-18 16:01:57 -05:00
|
|
|
with:
|
2021-03-28 03:40:52 -05:00
|
|
|
node-version: 12.x
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn 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
|
|
|
|
yarn init --yes
|
2022-08-27 11:45:30 -05:00
|
|
|
yarn add jest@26.0.0 --registry http://localhost:4873
|
2020-06-18 16:01:57 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
|
|
|
yarn add left-pad --registry http://localhost:4873 --verbose
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
|
|
|
yarn jest module.test.js
|
2020-10-09 11:53:44 -05:00
|
|
|
yarn2:
|
|
|
|
name: 'yarn2:jest example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2020-10-09 11:53:44 -05:00
|
|
|
|
2021-03-28 03:40:52 -05:00
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2020-10-09 11:53:44 -05:00
|
|
|
with:
|
2021-03-28 03:40:52 -05:00
|
|
|
node-version: 12.x
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-10-09 11:53:44 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
2020-10-09 11:53:44 -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
|
|
|
|
yarn init --yes
|
|
|
|
yarn set version berry
|
|
|
|
yarn config set npmRegistryServer "http://localhost:4873"
|
|
|
|
yarn config set unsafeHttpWhitelist --json '["localhost"]'
|
2020-11-20 00:43:57 -05:00
|
|
|
yarn add jest@26.0.0
|
2020-10-09 11:53:44 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
|
|
|
yarn add left-pad
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
2020-10-11 12:06:21 -05:00
|
|
|
yarn jest module.test.js
|
2020-06-18 16:01:57 -05:00
|
|
|
npm:
|
|
|
|
name: 'npm:jest example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2020-06-18 16:01:57 -05:00
|
|
|
|
2021-03-28 03:40:52 -05:00
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2020-06-18 16:01:57 -05:00
|
|
|
with:
|
2021-03-28 03:40:52 -05:00
|
|
|
node-version: 12.x
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'install latest npm'
|
2021-02-25 15:06:10 -05:00
|
|
|
run: npm i -g npm@latest-6
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn 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
|
|
|
|
npm init --force
|
2022-08-27 11:45:30 -05:00
|
|
|
npm install jest@26.0.0 --registry http://localhost:4873
|
2020-06-18 16:01:57 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
2022-03-04 15:08:18 -05:00
|
|
|
yarn add left-pad --registry http://localhost:4873 --verbose
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
|
|
|
yarn jest module.test.js
|
|
|
|
npm8:
|
|
|
|
name: 'npm8:jest example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2022-03-04 15:08:18 -05:00
|
|
|
|
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2022-03-04 15:08:18 -05:00
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- name: 'install latest npm'
|
|
|
|
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
|
|
|
|
npm init --force
|
2022-08-27 11:45:30 -05:00
|
|
|
npm install jest@26.0.0 --registry http://localhost:4873
|
2022-03-04 15:08:18 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
2020-10-09 11:53:44 -05:00
|
|
|
yarn add left-pad --registry http://localhost:4873 --verbose
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
|
|
|
yarn jest module.test.js
|
|
|
|
|
2022-03-04 15:08:18 -05:00
|
|
|
pnpm6:
|
2022-05-04 17:13:55 -05:00
|
|
|
name: 'pnpm:latest-6:jest example'
|
2020-06-18 16:01:57 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2020-06-18 16:01:57 -05:00
|
|
|
|
2021-03-28 03:40:52 -05:00
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2020-06-18 16:01:57 -05:00
|
|
|
with:
|
2021-03-28 03:40:52 -05:00
|
|
|
node-version: 12.x
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'install latest pnpm'
|
2022-05-04 17:13:55 -05:00
|
|
|
run: npm i -g pnpm@latest-6
|
2022-03-04 15:08:18 -05:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn install
|
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
|
|
|
nohup yarn node ./scripts/run-verdaccio.js &
|
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
pnpm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
|
|
|
pnpm init --force
|
2022-08-27 11:45:30 -05:00
|
|
|
pnpm install jest@26.0.0 --registry http://localhost:4873
|
2022-03-04 15:08:18 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
|
|
|
yarn add left-pad --registry http://localhost:4873 --verbose
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
|
|
|
yarn jest module.test.js
|
|
|
|
pnpm7:
|
|
|
|
name: 'pnpm:next-7:jest example'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-13 13:11:09 -05:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
2022-03-04 15:08:18 -05:00
|
|
|
|
|
|
|
- name: 'Use Node.js 12.x'
|
2022-09-13 13:11:09 -05:00
|
|
|
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
2022-03-04 15:08:18 -05:00
|
|
|
with:
|
|
|
|
node-version: 16.x
|
|
|
|
- name: 'install latest pnpm'
|
|
|
|
run: npm i -g pnpm@next-7
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: Install Dependencies
|
2020-10-11 12:06:21 -05:00
|
|
|
run: yarn install
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Run verdaccio in the background'
|
|
|
|
run: |
|
2021-05-13 16:13:57 -05:00
|
|
|
nohup yarn node ./scripts/run-verdaccio.js &
|
2020-06-18 16:01:57 -05:00
|
|
|
- name: 'Ping to verdaccio'
|
|
|
|
run: |
|
|
|
|
pnpm ping --registry http://localhost:4873
|
|
|
|
- name: 'Running the integration test'
|
|
|
|
run: |
|
|
|
|
source scripts/e2e-setup-ci.sh
|
2022-03-24 01:52:02 -05:00
|
|
|
pnpm init
|
2022-08-27 11:45:30 -05:00
|
|
|
pnpm install jest@26.0.0 --registry http://localhost:4873
|
2020-06-18 16:01:57 -05:00
|
|
|
|
|
|
|
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
|
|
|
yarn jest pass.test.js
|
|
|
|
|
|
|
|
yarn add left-pad --registry http://localhost:4873 --verbose
|
|
|
|
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
|
|
|
yarn jest module.test.js
|