From 5067f1feff8c4a770ddffeba5de10208137cf8bd Mon Sep 17 00:00:00 2001 From: Ziggy Jonsson Date: Mon, 15 Apr 2024 20:19:06 -0400 Subject: [PATCH] expand test versions --- .github/workflows/coverage.yml | 4 ++-- .github/workflows/test.yml | 2 +- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 81c7e12..3116b2e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -37,13 +37,13 @@ jobs: - run: npm install - run: npm run build --if-present - run: npm test - - run: npx lcov-badge2 .tap/report/lcov.info -o .tap/report/badge.svg + - run: npx lcov-badge2 coverage/lcov.info -o coverage/lcov-report/badge.svg - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: '.tap/report' + path: 'coverage/locv-report' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e687e0..62bf35e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [ 10.x, 12.x, 14.x, 16.x, 17.x, 18.x, 19.x] steps: - uses: actions/checkout@v3 diff --git a/package.json b/package.json index 172205e..7aa15d3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "iconv-lite": "^0.4.24", "request": "^2.88.0", "stream-buffers": ">= 0.2.5 < 1", - "tap": "^18.7.2", + "tap": "^12.7.0", "temp": ">= 0.4.0 < 1" }, "directories": { @@ -53,6 +53,6 @@ ], "main": "unzip.js", "scripts": { - "test": "npx tap --coverage-report=lcov --coverage-report=html --allow-incomplete-coverage" + "test": "npx tap test/*.js --coverage-report=html" } }