From 625834f728ba474943e2bc51f0019d53546af14a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:26:00 +0000 Subject: [PATCH 1/2] Bump es5-ext from 0.10.59 to 0.10.64 Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.59 to 0.10.64. - [Release notes](https://github.com/medikoo/es5-ext/releases) - [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md) - [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.59...v0.10.64) --- updated-dependencies: - dependency-name: es5-ext dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 55 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2265a37..eea2e64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1974,20 +1974,36 @@ } }, "node_modules/es5-ext": { - "version": "0.10.59", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.59.tgz", - "integrity": "sha512-cOgyhW0tIJyQY1Kfw6Kr0viu9ZlUctVchRMZ7R0HiH3dxTSp5zJDLecwxUqPUrGKMsgBI1wd1FL+d9Jxfi4cLw==", + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", "hasInstallScript": true, "peer": true, "dependencies": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", "next-tick": "^1.1.0" }, "engines": { "node": ">=0.10" } }, + "node_modules/es5-ext/node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "peer": true, + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/es6-iterator": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", @@ -5931,9 +5947,9 @@ "dev": true }, "node_modules/type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==", + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", "peer": true }, "node_modules/type-check": { @@ -7847,14 +7863,29 @@ } }, "es5-ext": { - "version": "0.10.59", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.59.tgz", - "integrity": "sha512-cOgyhW0tIJyQY1Kfw6Kr0viu9ZlUctVchRMZ7R0HiH3dxTSp5zJDLecwxUqPUrGKMsgBI1wd1FL+d9Jxfi4cLw==", + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", "peer": true, "requires": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", "next-tick": "^1.1.0" + }, + "dependencies": { + "esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "peer": true, + "requires": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + } + } } }, "es6-iterator": { @@ -10914,9 +10945,9 @@ "dev": true }, "type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==", + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", "peer": true }, "type-check": { From 07bb15773dfca4445363045ee3c6234d308996c9 Mon Sep 17 00:00:00 2001 From: EliuX Date: Tue, 10 Dec 2024 13:24:02 -0500 Subject: [PATCH 2/2] ci: replace travis by github actions --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 28 -------------------------- README.md | 2 +- 3 files changed, 41 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..aa8afd9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Serverless Migrate Plugin CI + +on: + push: + branches: [ feature/update-readme-custom-migrate ] + pull_request: + branches: [ feature/update-readme-custom-migrate ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '14.x' + + - name: Install dependencies + run: npm install + + - name: Link package + run: | + cd ${GITHUB_WORKSPACE}/example + npm link serverless-migrate-plugin + + - name: Build and test + run: | + npm run create + npm run up + npm run down + npm run list + echo It is all good man! + + - name: Deploy to npm + uses: pnpm/action-deploy@v0 + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + PACKAGE_NAME: serverless-migrate-plugin diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4cf527d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -dist: trusty -language: node_js -node_js: - - lts/* -before_install: - - npm install - - npm link - - cd ${TRAVIS_BUILD_DIR}/example - - npm install -g serverless - - npm link serverless-migrate-plugin - - npm install -install: - - echo "Running basic commands" - - npm run create - - npm run up - - npm run down - - npm run list - - echo It is all good man! -after_success: - - cd .. -deploy: - provider: npm - email: $NPM_USER - api_key: $NPM_TOKEN - edge: true - on: - tags: true - repo: EliuX/serverless-migrate-plugin diff --git a/README.md b/README.md index 88d0df2..07d8977 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Serverless plugin for migrate ============================== -[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) +[![serverless](https://badges.serverless.com/v3.svg)](https://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-migrate-plugin.svg)](https://badge.fury.io/js/serverless-migrate-plugin) This is a plugin for the [Serverless][serverless-web] framework that allows you to manage and run database-agnostic