mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
f82a32ae34
Bumps [actions/checkout](https://github.com/actions/checkout) from v2.3.1 to v2.3.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.1...2036a08e25fa78bbd946711a407b529a0a1204bf) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
108 lines
3.5 KiB
YAML
108 lines
3.5 KiB
YAML
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:
|
|
- uses: actions/checkout@v2.3.2
|
|
|
|
- name: 'Use Node.js 10.x'
|
|
uses: actions/setup-node@v2.1.1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Install Dependencies
|
|
run: yarn install --pure-lockfile
|
|
- name: 'Run verdaccio in the background'
|
|
run: |
|
|
nohup node ./scripts/run-verdaccio.js &
|
|
- 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 add jest --registry http://localhost:4873
|
|
|
|
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
|
|
npm:
|
|
name: 'npm:jest example'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.3.2
|
|
|
|
- name: 'Use Node.js 10.x'
|
|
uses: actions/setup-node@v2.1.1
|
|
with:
|
|
node-version: 10.x
|
|
- name: 'install latest npm'
|
|
run: npm i -g npm
|
|
- name: Install Dependencies
|
|
run: yarn install --pure-lockfile
|
|
- name: 'Run verdaccio in the background'
|
|
run: |
|
|
nohup node ./scripts/run-verdaccio.js &
|
|
- 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
|
|
npm install jest --registry http://localhost:4873
|
|
|
|
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
|
|
pnpm:
|
|
name: 'pnpm:jest example'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2.3.2
|
|
|
|
- name: 'Use Node.js 10.x'
|
|
uses: actions/setup-node@v2.1.1
|
|
with:
|
|
node-version: 10.x
|
|
- name: 'install latest pnpm'
|
|
run: npm i -g pnpm
|
|
- name: Install Dependencies
|
|
run: yarn install --pure-lockfile
|
|
- name: 'Run verdaccio in the background'
|
|
run: |
|
|
nohup 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
|
|
pnpm install jest --registry http://localhost:4873
|
|
|
|
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
|
|
|