Skip to content

Commit

Permalink
write lcov file; update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed May 29, 2024
1 parent 2120831 commit df3dacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit df3dacd

Please sign in to comment.