diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 81c502d..8ac35e7 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -24,6 +24,12 @@ jobs: matrix: eslint: [6.8.0, 6, 7.0.0, 7, 8.0.0, 8] node: [12.22.0, 12, 14.17.0, 14, 16.0.0, 16] + testing-library-dom: [8, 9] + exclude: + - node: 12.22.0 + testing-library-dom: 9 + - node: 12 + testing-library-dom: 9 runs-on: ubuntu-latest steps: - name: ⬇️ Checkout repo @@ -42,6 +48,9 @@ jobs: - name: Install ESLint v${{ matrix.eslint }} run: npm install --no-save --force eslint@${{ matrix.eslint }} + - name: Install @testing-library/dom v${{ matrix.testing-library-dom }} + run: npm install --no-save --force @testing-library/dom@${{ matrix.testing-library-dom }} + - name: ▶️ Run validate script (without linting) if: ${{ matrix.eslint != 8 }} run: npm run validate -- build,test:coverage diff --git a/package.json b/package.json index 595ede8..f420b59 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ }, "dependencies": { "@babel/runtime": "^7.16.3", - "@testing-library/dom": "^8.11.1", "requireindex": "^1.2.0" }, "devDependencies": { @@ -55,7 +54,8 @@ "typescript": "^4.5.3" }, "peerDependencies": { - "eslint": "^6.8.0 || ^7.0.0 || ^8.0.0" + "eslint": "^6.8.0 || ^7.0.0 || ^8.0.0", + "@testing-library/dom": "^8.0.0 || ^9.0.0" }, "eslintConfig": { "extends": "./node_modules/kcd-scripts/eslint.js",