From 86e76812078629a508b777af78382b5044a0adb7 Mon Sep 17 00:00:00 2001 From: DmPrkp Date: Wed, 28 May 2025 15:58:32 +0300 Subject: [PATCH 1/3] add ci --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3957fa4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] +# on: +# push: +# branches: [main, master] +# pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 18.x] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test \ No newline at end of file From 200f8870fcda915e4b3eb8b679563243f5c8e583 Mon Sep 17 00:00:00 2001 From: DmPrkp Date: Wed, 28 May 2025 15:58:58 +0300 Subject: [PATCH 2/3] lint package json --- package.json | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index a617a79..6a9b05a 100644 --- a/package.json +++ b/package.json @@ -2,25 +2,33 @@ "name": "redis-migrate", "version": "0.0.1", "description": "CLI tool to create and run redis key migrations", - "keywords": ["cli", "redis", "db", "key", "migration", "migrate", "tool"], + "keywords": [ + "cli", + "redis", + "db", + "key", + "migration", + "migrate", + "tool" + ], "author": "Daniel St. Jules ", - "licenses": ["MIT"], + "license": "MIT", "homepage": "https://github.com/Vectorface/redis-migrate", "repository": { "type": "git", "url": "https://github.com/Vectorface/redis-migrate.git" }, "dependencies": { - "redis": "*", "async": "*", - "commander": "2.1.0" + "commander": "2.1.0", + "redis": "*" }, "devDependencies": { - "mocha": "*", "expect.js": "*", "fakeredis": "*", - "sinon": "*", - "mock-fs": "2.2.0" + "mocha": "*", + "mock-fs": "5.5.0", + "sinon": "*" }, "bin": { "redis-migrate": "./bin/redis-migrate" @@ -28,4 +36,4 @@ "scripts": { "test": "./node_modules/.bin/mocha -R spec spec" } -} \ No newline at end of file +} From 25692a0b313e92700b3637575929fe6dc283aa50 Mon Sep 17 00:00:00 2001 From: DmPrkp Date: Wed, 28 May 2025 16:02:28 +0300 Subject: [PATCH 3/3] fix ci --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3957fa4..d84caee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,9 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + + - name: Install dependencies + run: npm install - name: Install dependencies run: npm ci