diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bffd90..1f5e040 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,21 @@ jobs: - uses: actions/checkout@v2 - run: node -v - run: npm install - - run: npm test - run: npm run test-js - run: npm run test-ts + - run: npm run coverage + + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm install + - run: npm run coverage + - name: Publish Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + - name: Publish Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage/lcov.info diff --git a/cspell-words.txt b/cspell-words.txt index 417ab35..c1ddb71 100644 --- a/cspell-words.txt +++ b/cspell-words.txt @@ -1,2 +1,3 @@ +codecov gimsuy lcov diff --git a/package.json b/package.json index b294e51..38172cc 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "eslint \"src/**/*.ts\"", "build": "npm run compile", "clean-build": "npm run clean && npm run build", + "coverage": "jest --coverage", "prepublish": "npm run clean-build", "prepublishOnly": "npm run test-all", "compile": "tsc -p .",