From c6d0ecc5f7b89377a2d5d9acba623c6333dc62d3 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 22 Dec 2021 18:16:35 -0500 Subject: [PATCH] feat: allow eslint-plugin-promise 6 Expand the peerDependency and add a CI matrix to test it --- .github/workflows/ci.yml | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9f77fb8..2c21c79c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,13 @@ on: jobs: ci: + strategy: + fail-fast: false + matrix: + eslint-plugin-promise: + - 4 + - 5 + - 6 runs-on: 'ubuntu-latest' steps: - uses: 'actions/checkout@v2' @@ -28,5 +35,8 @@ jobs: - name: 'Install dependencies' run: 'npm install' + - name: 'Install eslint-plugin-promise' + run: npm install -D eslint-plugin-promise@${{matrix.eslint-plugin-promise}} + - name: 'Run tests' run: 'npm test' diff --git a/package.json b/package.json index f9c5f7eb..2b7152dc 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "eslint": "^7.12.1", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^4.2.1 || ^5.0.0" + "eslint-plugin-promise": "^4.2.1 || ^5.0.0 || ^6.0.0" }, "repository": { "type": "git",