Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
autopulated committed Jan 31, 2024
1 parent 47bcd13 commit bd1780c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: test
on:
workflow_dispatch:
push:
branches: [ "*" ]
pull_request:

jobs:
test:
Expand All @@ -16,12 +16,12 @@ jobs:
- 8000:8000

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: install deps
run: npm ci
Expand All @@ -36,3 +36,7 @@ jobs:
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummy

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
files: .tap/report/lcov.info
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
"description": "Simple Document mapper for DynamoDB, inspired by mongoose.",
"main": "index.js",
"scripts": {
"test": "tap run --show-full-coverage --allow-incomplete-coverage",
"test": "tap run",
"lint": "./node_modules/.bin/eslint -c .eslintrc.json './{,!(node_modules)/**/}*.js'"
},
"tap": {
"show-full-coverage": true,
"allow-incomplete-coverage": true,
"coverage-report": [ "text", "lcovonly" ],
"files": [ "test" ]
},
"files": [
"index.js"
],
Expand Down

0 comments on commit bd1780c

Please sign in to comment.