Skip to content

Commit f14a2da

Browse files
authored
ci(coveralls): use github coveralls action (#419)
1 parent 5e79b93 commit f14a2da

File tree

4 files changed

+28
-34
lines changed

4 files changed

+28
-34
lines changed

.github/workflows/coveralls.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on: ["push","pull_request"]
2+
3+
name: Coveralls
4+
5+
jobs:
6+
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- uses: actions/checkout@master
13+
14+
- name: Use Node.js 12.x
15+
uses: actions/setup-node@master
16+
with:
17+
node-version: 12.x
18+
19+
- name: yarn install, coverage
20+
run: |
21+
yarn install
22+
yarn coverage
23+
24+
- name: Coveralls
25+
uses: coverallsapp/github-action@master
26+
with:
27+
github-token: ${{ secrets.github_token }}

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@ cache: yarn
99
stages:
1010
- lint
1111
- test
12-
- coveralls
1312
jobs:
1413
include:
1514
- stage: lint
1615
script: yarn lint
17-
- stage: coveralls
18-
script: yarn coveralls
19-
env:
20-
global:
21-
# COVERALLS_REPO_TOKEN=
22-
secure: "I8mDH0n2DQHAPvUFEV/ZNmrMNYTJxgywg8+P3yuCAWwQkZeXQi0DWG+6VUpOylaRhL/4kCdZK9gnJD2MfrqvNqVLDUqBK3tTmZVoyqqJEdE0UdEHcPncAPmxWrG98sDjqFN9r4nWeizHvyA1fNRQHRN56Zy+DcQWjgEhHJaYeNA="

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
"build": "tsc",
1717
"pretest": "yarn build",
1818
"test": "jest",
19-
"precover": "yarn clean && yarn build",
20-
"cover": "jest --coverage",
21-
"precoveralls": "yarn clean && yarn build",
22-
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
23-
"postcoveralls": "yarn clean",
19+
"coverage": "jest --coverage --coverageReporters=lcov",
2420
"prepare": "yarn clean && yarn build && rm dist/tsconfig.tsbuildinfo"
2521
},
2622
"repository": {
@@ -61,7 +57,6 @@
6157
"@types/supertest": "^2.0.8",
6258
"browser-sync": "^2.26.7",
6359
"connect": "^3.7.0",
64-
"coveralls": "^3.0.5",
6560
"express": "^4.17.1",
6661
"husky": "^4.2.3",
6762
"jest": "^25.1.0",

yarn.lock

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,17 +1744,6 @@ cosmiconfig@^6.0.0:
17441744
path-type "^4.0.0"
17451745
yaml "^1.7.2"
17461746

1747-
coveralls@^3.0.5:
1748-
version "3.0.9"
1749-
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.9.tgz#8cfc5a5525f84884e2948a0bf0f1c0e90aac0420"
1750-
integrity sha512-nNBg3B1+4iDox5A5zqHKzUTiwl2ey4k2o0NEcVZYvl+GOSJdKBj4AJGKLv6h3SvWch7tABHePAQOSZWM9E2hMg==
1751-
dependencies:
1752-
js-yaml "^3.13.1"
1753-
lcov-parse "^1.0.0"
1754-
log-driver "^1.2.7"
1755-
minimist "^1.2.0"
1756-
request "^2.88.0"
1757-
17581747
cross-spawn@^6.0.0:
17591748
version "6.0.5"
17601749
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -3790,11 +3779,6 @@ lcid@^1.0.0:
37903779
dependencies:
37913780
invert-kv "^1.0.0"
37923781

3793-
lcov-parse@^1.0.0:
3794-
version "1.0.0"
3795-
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0"
3796-
integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A=
3797-
37983782
leven@^3.1.0:
37993783
version "3.1.0"
38003784
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"
@@ -3967,11 +3951,6 @@ [email protected], lodash@^4.16.4, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.1
39673951
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
39683952
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
39693953

3970-
log-driver@^1.2.7:
3971-
version "1.2.7"
3972-
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
3973-
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==
3974-
39753954
log-symbols@^1.0.2:
39763955
version "1.0.2"
39773956
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"

0 commit comments

Comments
 (0)