From df3dacd3b76901c467d54cb10f69783c7833fd83 Mon Sep 17 00:00:00 2001 From: James Chartrand Date: Wed, 29 May 2024 08:52:14 -0400 Subject: [PATCH] write lcov file; update actions --- .github/workflows/main.yml | 8 +++----- package.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f40473..64cc5d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,18 +10,16 @@ jobs: matrix: node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install - name: Run test with Node.js ${{ matrix.node-version }} run: npm run coveralls - env: - CI: true - name: Coveralls GitHub Action - uses: coverallsapp/github-action@v1.1.2 + uses: coverallsapp/github-action@v2 with: github-token: ${{ github.token }} diff --git a/package.json b/package.json index 175068a..e857ca1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "nodemon -r dotenv/config server.js", "dev-noenv": "nodemon server.js", "test": "NODE_OPTIONS=--experimental-vm-modules npx c8 mocha --timeout 10000 -r dotenv/config dotenv_config_path=src/test-fixtures/.env.testing src/app.test.js ", - "coveralls": "npm run test; npx c8 report --reporter=text-lcov", + "coveralls": "npm run test; npx c8 report --reporter=text-lcov > ./coverage/lcov.info", "prepare": "test -d node_modules/husky && husky install || echo \"husky is not installed\"", "lint": "eslint", "lint-fix": "eslint --fix"