Skip to content

Commit

Permalink
Merge branch 'master' of github.com:adobe/aio-cli-plugin-events into …
Browse files Browse the repository at this point in the history
…dependabot/npm_and_yarn/oclif-4.0.3
  • Loading branch information
Amulya Kashyap committed Jan 23, 2025
2 parents e713133 + 2988b81 commit 089b876
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 146 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i --package-lock --package-lock-only
- run: npm ci
- name: run unit tests
run: npm run test
- name: Slack Notification
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: 'Node version'
SLACK_MESSAGE: ${{ matrix.node-version }}
SLACK_COLOR: ${{ job.status == 'success' && 'good' || job.status == 'cancelled' && '#808080' || 'danger' }}
uses: adobe/aio-reusable-workflows/.github/workflows/daily.yml@main
secrets: inherit

25 changes: 2 additions & 23 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,5 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 16.x]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i --package-lock --package-lock-only
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: upload coverage
if: success()
uses: codecov/codecov-action@v3.1.1
with:
name: ${{ runner.os }} node.js ${{ matrix.node-version }}
uses: adobe/aio-reusable-workflows/.github/workflows/node.js.yml@main
secrets: inherit
13 changes: 2 additions & 11 deletions .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,5 @@ on:
- 'package.json'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
uses: adobe/aio-reusable-workflows/.github/workflows/on-push-publish-to-npm.yml@main
secrets: inherit
28 changes: 2 additions & 26 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,5 @@ on:

jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- uses: actions/setup-node@v1
with:
node-version: 16
- run: |
npm install
npm test
- name: Update your package.json with an npm pre-release version
id: pre-release-version
uses: adobe/update-prerelease-npm-version@v1.0.0
with:
pre-release-tag: ${{ github.event.inputs.pre-release-tag }}
dependencies-to-update: ${{ github.event.inputs.dependencies-to-update }}
dependencies-to-update-version-tag: ${{ github.event.inputs.dist-tag }}
- run: echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
tag: ${{ github.event.inputs.dist-tag }}
access: 'public'
uses: adobe/aio-reusable-workflows/.github/workflows/prerelease.yml@main
secrets: inherit
28 changes: 2 additions & 26 deletions .github/workflows/version-bump-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,5 @@ on:
default: "latest"
jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
- name: Configure CI Git User
run: |
git config user.name adobe-bot
git config user.email grp-opensourceoffice@adobe.com
- uses: actions/setup-node@v1
with:
node-version: 16
- run: |
npm install
npm test
- name: bump and pub
if: ${{ github.event.inputs.level != '' }}
run: |
npm version ${{ github.event.inputs.level }}
git push
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
tag: ${{ github.event.inputs.tag }}
access: "public"
uses: adobe/aio-reusable-workflows/.github/workflows/version-bump-publish.yml@main
secrets: inherit
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ DESCRIPTION
Manage your Adobe I/O Events
```

_See code: [src/commands/event/index.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/index.ts)_
_See code: [src/commands/event/index.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/index.js)_

## `aio event eventmetadata`

Expand All @@ -102,7 +102,7 @@ DESCRIPTION
Manage your Adobe I/O Events Providers' Event Metadata
```

_See code: [src/commands/event/eventmetadata/index.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/index.ts)_
_See code: [src/commands/event/eventmetadata/index.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/index.js)_

## `aio event eventmetadata create PROVIDERID`

Expand All @@ -126,7 +126,7 @@ DESCRIPTION
Create an Event Metadata for a Provider
```

_See code: [src/commands/event/eventmetadata/create.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/create.ts)_
_See code: [src/commands/event/eventmetadata/create.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/create.js)_

## `aio event eventmetadata delete PROVIDERID [EVENTCODE]`

Expand All @@ -149,7 +149,7 @@ DESCRIPTION
Delete Event Metadata for a Provider
```

_See code: [src/commands/event/eventmetadata/delete.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/delete.ts)_
_See code: [src/commands/event/eventmetadata/delete.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/delete.js)_

## `aio event eventmetadata get PROVIDERID EVENTCODE`

Expand All @@ -174,7 +174,7 @@ DESCRIPTION
Get details of an Event Code of a Provider
```

_See code: [src/commands/event/eventmetadata/get.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/get.ts)_
_See code: [src/commands/event/eventmetadata/get.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/get.js)_

## `aio event eventmetadata list PROVIDERID`

Expand All @@ -201,7 +201,7 @@ ALIASES
$ aio event eventmetadata ls
```

_See code: [src/commands/event/eventmetadata/list.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/list.ts)_
_See code: [src/commands/event/eventmetadata/list.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/list.js)_

## `aio event eventmetadata ls PROVIDERID`

Expand Down Expand Up @@ -251,7 +251,7 @@ DESCRIPTION
Update an Event Metadata for a Provider
```

_See code: [src/commands/event/eventmetadata/update.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/eventmetadata/update.ts)_
_See code: [src/commands/event/eventmetadata/update.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/eventmetadata/update.js)_

## `aio event provider`

Expand All @@ -270,7 +270,7 @@ DESCRIPTION
Manage your Adobe I/O Events Providers
```

_See code: [src/commands/event/provider/index.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/index.ts)_
_See code: [src/commands/event/provider/index.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/index.js)_

## `aio event provider create`

Expand All @@ -291,7 +291,7 @@ DESCRIPTION
Create a new Provider
```

_See code: [src/commands/event/provider/create.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/create.ts)_
_See code: [src/commands/event/provider/create.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/create.js)_

## `aio event provider delete PROVIDERID`

Expand All @@ -313,7 +313,7 @@ DESCRIPTION
Delete Provider by id
```

_See code: [src/commands/event/provider/delete.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/delete.ts)_
_See code: [src/commands/event/provider/delete.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/delete.js)_

## `aio event provider get PROVIDERID`

Expand All @@ -338,7 +338,7 @@ DESCRIPTION
Get details of Provider by id
```

_See code: [src/commands/event/provider/get.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/get.ts)_
_See code: [src/commands/event/provider/get.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/get.js)_

## `aio event provider list`

Expand Down Expand Up @@ -367,7 +367,7 @@ ALIASES
$ aio event provider ls
```

_See code: [src/commands/event/provider/list.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/list.ts)_
_See code: [src/commands/event/provider/list.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/list.js)_

## `aio event provider ls`

Expand Down Expand Up @@ -418,7 +418,7 @@ DESCRIPTION
Update an existing Provider
```

_See code: [src/commands/event/provider/update.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/provider/update.ts)_
_See code: [src/commands/event/provider/update.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/provider/update.js)_

## `aio event reg`

Expand Down Expand Up @@ -593,7 +593,7 @@ ALIASES
$ aio event reg
```

_See code: [src/commands/event/registration/index.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/registration/index.ts)_
_See code: [src/commands/event/registration/index.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/registration/index.js)_

## `aio event registration create BODYJSONFILE`

Expand Down Expand Up @@ -632,7 +632,7 @@ ALIASES
$ aio event reg create
```

_See code: [src/commands/event/registration/create.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/registration/create.ts)_
_See code: [src/commands/event/registration/create.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/registration/create.js)_

## `aio event registration delete REGISTRATIONID`

Expand All @@ -657,7 +657,7 @@ ALIASES
$ aio event reg delete
```

_See code: [src/commands/event/registration/delete.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/registration/delete.ts)_
_See code: [src/commands/event/registration/delete.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/registration/delete.js)_

## `aio event registration get REGISTRATIONID`

Expand All @@ -684,7 +684,7 @@ ALIASES
$ aio event reg get
```

_See code: [src/commands/event/registration/get.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/registration/get.ts)_
_See code: [src/commands/event/registration/get.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/registration/get.js)_

## `aio event registration list`

Expand All @@ -710,7 +710,7 @@ ALIASES
$ aio event reg ls
```

_See code: [src/commands/event/registration/list.ts](https://github.com/adobe/aio-cli-plugin-events/blob/v3.3.3/src/commands/event/registration/list.ts)_
_See code: [src/commands/event/registration/list.js](https://github.com/adobe/aio-cli-plugin-events/blob/v4.0.1/src/commands/event/registration/list.js)_

## `aio event registration ls`

Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"name": "@adobe/aio-cli-plugin-events",
"description": "Adobe I/O Events Plugin for the Adobe I/O CLI",
"version": "3.3.3",
"version": "4.0.1",
"main": "src/index.js",
"keywords": [
"oclif-plugin"
],
"license": "Apache-2.0",
"dependencies": {
"@adobe/aio-lib-console": "^4.0.0",
"@adobe/aio-lib-core-config": "^4.0.0",
"@adobe/aio-lib-core-logging": "^2.0.0",
"@adobe/aio-lib-core-networking": "^4.1.0",
"@adobe/aio-lib-env": "^2.0.0",
"@adobe/aio-cli-lib-app-config": "^3.0.0",
"@adobe/aio-lib-events": "^3.2.0",
"@adobe/aio-lib-ims": "^6.0.1",
"@adobe/aio-cli-lib-app-config": "^4",
"@adobe/aio-lib-console": "^5",
"@adobe/aio-lib-core-config": "^5",
"@adobe/aio-lib-core-logging": "^3",
"@adobe/aio-lib-core-networking": "^5",
"@adobe/aio-lib-env": "^3",
"@adobe/aio-lib-events": "^4",
"@adobe/aio-lib-ims": "^7",
"@oclif/core": "^1.5.2",
"inquirer": "^8.2.5",
"js-yaml": "^4.1.0"
},
"repository": "adobe/aio-cli-plugin-events",
"devDependencies": {
"@adobe/eslint-config-aio-lib-config": "^2.0.2",
"@adobe/eslint-config-aio-lib-config": "^4.0.0",
"@types/jest": "^29.5.3",
"acorn": "^8.10.0",
"babel-runtime": "^6.26.0",
"chalk": "^4.0.0",
"eol": "^0.9.1",
"eslint": "^8.47.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^4.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsdoc": "^42.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-standard": "^5.0.0",
"execa": "^7.2.0",
"jest": "^29.5.0",
Expand All @@ -48,7 +48,8 @@
"typescript": "^5.1.6"
},
"engines": {
"node": "^14.18 || ^16.13 || >=18"
"node": ">=18",
"npm": ">=7"
},
"files": [
"/oclif.manifest.json",
Expand Down
3 changes: 2 additions & 1 deletion test/hooks/pre-pack-event-reg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const { getCliEnv } = require('@adobe/aio-lib-env')

const mockFetch = jest.fn()
jest.mock('@adobe/aio-lib-core-networking', () => ({
createFetch: jest.fn(() => mockFetch)
createFetch: jest.fn(() => mockFetch),
HttpExponentialBackoff: jest.fn()
}))

const hook = require('../../src/hooks/pre-pack-event-reg')
Expand Down
5 changes: 4 additions & 1 deletion test/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jest.useFakeTimers()
// don't touch the real fs
const mockFs = {
readFileSync: jest.fn(),
readFile: jest.fn()
readFile: jest.fn(),
promises: {
stat: jest.fn()
}
}
jest.mock('fs', () => mockFs)

Expand Down

0 comments on commit 089b876

Please sign in to comment.