From 6ac5863a202484f9020e27e7f21bf53c36ecb25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Marqu=C3=ADnez=20Prado?= <25435858+inigomarquinez@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:32:39 +0200 Subject: [PATCH] ci: remove test coverage gh action --- .../workflows/code-climate-test-coverage.yml | 44 ------------------- package.json | 2 +- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 .github/workflows/code-climate-test-coverage.yml diff --git a/.github/workflows/code-climate-test-coverage.yml b/.github/workflows/code-climate-test-coverage.yml deleted file mode 100644 index ff5719b..0000000 --- a/.github/workflows/code-climate-test-coverage.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Code Climate Test Reporter - -on: - push: - branches: [master] - -permissions: # added using https://github.com/step-security/secure-workflows - contents: read - -jobs: - code-climate: - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 - with: - disable-sudo: true - egress-policy: block - allowed-endpoints: > - api.codeclimate.com:443 - codeclimate.com:443 - d3iz1jjs17r6kg.cloudfront.net:443 - github.com:443 - registry.npmjs.org:443 - - - name: ⚙️ Git Checkout - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - - - name: ⚙️ Install Node versions - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 - with: - node-version: 14 - - - name: ⚙️ Install dependencies - run: npm ci - - - run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - run: chmod +x ./cc-test-reporter - - run: ./cc-test-reporter before-build - - run: npm run coverage - - run: ./cc-test-reporter format-coverage -t lcov coverage/lcov.info - - run: ./cc-test-reporter upload-coverage - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} diff --git a/package.json b/package.json index 14c0e57..f4cbf44 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "example": "cd examples && SECRET='a password' NODE_ENV=development node index.js", "test": "zUnit", - "coverage": "nyc --reporter lcov npm run test", + "coverage": "nyc --report html --reporter lcov --reporter text-summary zUnit", "lint": "eslint .", "prepare": "husky install" },