From 60f8b4e8601909e28b6a25d7b60c7bb95286ba8b Mon Sep 17 00:00:00 2001 From: Anthony D'Andrea Date: Mon, 6 May 2024 09:42:54 -0500 Subject: [PATCH] Upgrade Node (#31) * bump node, checkout action, fix some package.json & gitignore things so tests/lint run * use openssl-legacy-provider for build --- .github/workflows/test.yml | 6 +++--- .gitignore | 1 + package.json | 9 ++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a4de2e..297bc45 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: CI env: - NODE_VERSION: 14.17.3 + NODE_VERSION: 20.11.1 MASTER_SHA: '' on: @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest name: We test it locally with act steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: jest coverage reporter uses: ./ # Uses an action in the root directory @@ -37,4 +37,4 @@ jobs: coverageType: cobertura only-check-changed-files: false check-new-file-full-coverage: false - prefix-filename-url: 'https://tubi-web-assets-staging.s3.us-east-2.amazonaws.com/larnaca-coverage-artifacts' \ No newline at end of file + prefix-filename-url: 'https://tubi-web-assets-staging.s3.us-east-2.amazonaws.com/larnaca-coverage-artifacts' diff --git a/.gitignore b/.gitignore index c5a45ed..000a17f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules # coverage debug.local.js tests +coverage/* diff --git a/package.json b/package.json index 5af6bb6..46f3037 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "description": "Produce a coverage report and provide a diff with base report", "main": "dest/index.js", "scripts": { - "lint": "eslint -c .eslintrc.json src", - "test": "jest src --coverage --verbose", + "lint": "eslint -c .eslintrc.js src", + "test": "jest src --coverage --verbose --passWithNoTests", "jest-dev": "jest src --coverage --verbose --watch", - "build": "ncc build src/index.js -o dest" + "build": "NODE_OPTIONS=--openssl-legacy-provider ncc build src/index.js -o dest" }, "repository": "git@github.com:arunshan/jest-cov-reporter.git", "license": "MIT", @@ -23,5 +23,8 @@ "eslint": "^8.6.0", "jest": "^26.6.3", "xml2js": "^0.6.2" + }, + "engines": { + "node": "^20.11.1" } }