From 2054bd4b40e77a2e509f6ca8c423890640a1c58f Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Thu, 1 Apr 2021 08:34:04 +0200 Subject: [PATCH] ci: Use github workflow to update coverage. --- .github/workflows/coverage.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 6 ------ cSpell.json | 14 ++++++-------- package.json | 1 + 4 files changed, 33 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..714aa3f --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,26 @@ +name: Coverage +on: + pull_request: + push: + branches: + - master + +jobs: + coverage: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2.1.5 + + - run: npm ci + + - run: npm run coverage + + - name: Upload coverage Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.travis.yml b/.travis.yml index d9b11fd..43f44cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,3 @@ install: script: - npm test - npm run lint-travis - -jobs: - include: - - stage: "Coverage" - script: - - npm run travis-coverage diff --git a/cSpell.json b/cSpell.json index cf0734d..c4ed2da 100644 --- a/cSpell.json +++ b/cSpell.json @@ -1,18 +1,16 @@ -// cSpell Settings { - // Version of the setting file. Always 0.1 "version": "0.1", - // language - current active spelling language "language": "en", - // words - list of words to be always considered correct "words": [ - "Pausable", + "api's", + "coverallsapp", + "lcov", "Observables", - "Streamable", - "api's" + "Pausable", + "Streamable" ], "ignorePaths": [ "package*.json", "node_modules" ] -} +} \ No newline at end of file diff --git a/package.json b/package.json index 22711f4..7863f4d 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "ts-node/register" ], "reporter": [ + "lcov", "json", "html" ]