Skip to content

Commit

Permalink
ci: use Coveralls GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardini committed Apr 13, 2020
1 parent 5ebda4b commit 9422389
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
run: npm run lint

- name: Test
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
run: npm run test:ci
run: npm test -- --coverage-report=lcovonly

- name: Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release
env:
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"build": "babel src/ -d lib/",
"watch": "npm run build -- --watch",
"lint": "standard | snazzy",
"test": "tap test/*.js",
"test:ci": "tap test/*.js --coverage-report=text-lcov | coveralls"
"test": "tap test/*.js"
},
"bin": "./bin/sro",
"repository": {
Expand All @@ -48,7 +47,6 @@
"@babel/core": "7.9.0",
"@babel/preset-env": "7.9.5",
"babel-plugin-add-module-exports": "1.0.2",
"coveralls": "3.0.11",
"semantic-release": "17.0.4",
"sinon": "9.0.2",
"snazzy": "8.0.0",
Expand Down

0 comments on commit 9422389

Please sign in to comment.