Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 68e9e99

Browse files
authored
Add circleci and codecov (#22)
* Add circleci * Use files instead of npmignore * Change to c8 * Change reporter to text-lcov * Change back to lcov
1 parent 73c636f commit 68e9e99

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
jobs:
3+
test-linux:
4+
docker:
5+
- image: circleci/node:10
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- run:
10+
name: Installing dependencies
11+
command: yarn install
12+
- run:
13+
name: Build
14+
command: yarn build
15+
- run:
16+
name: Test Coverage
17+
command: yarn test-coverage
18+
workflows:
19+
version: 2
20+
test:
21+
jobs:
22+
- test-linux

.github/main.workflow

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workflow "Run all on push" {
22
on = "push"
3-
resolves = ["4. Coverage"]
3+
resolves = ["3. Test"]
44
}
55

66
action "1. Install" {
@@ -19,10 +19,3 @@ action "3. Test" {
1919
needs = ["2. Build"]
2020
args = "test"
2121
}
22-
23-
action "4. Coverage" {
24-
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
25-
needs = ["3. Test"]
26-
secrets = ["CODECOV_TOKEN"]
27-
args = "run coverage"
28-
}

.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
"name": "@zeit/tracing-js",
33
"version": "0.4.1",
44
"description": "A partial implementation of the Opentracing JavaScript API for honeycomb.io backend",
5-
"main": "./dist/src/index.js",
6-
"types": "./dist/src/index.d.js",
5+
"main": "dist/src/index.js",
6+
"types": "dist/src/index.d.js",
7+
"files": [
8+
"dist/src/**"
9+
],
710
"scripts": {
811
"build": "tsc",
912
"watch": "tsc --watch",
1013
"fmt": "prettier --single-quote --bracket-spacing --trailing-comma all --write './{src,test,types,examples}/**/*.ts'",
1114
"test": "tape dist/test/**.js",
12-
"coverage": "nyc tape dist/test/**.js && nyc report --reporter=text-lcov > coverage.lcov && codecov"
15+
"test-coverage": "npx c8 --reporter=lcov npm test && npx codecov"
1316
},
1417
"repository": "github:zeit/tracing-js",
1518
"author": "styfle",
@@ -21,9 +24,7 @@
2124
"@types/node": "^11.9.4",
2225
"@types/node-fetch": "^2.1.6",
2326
"@types/tape": "^4.2.33",
24-
"codecov": "^3.2.0",
2527
"node-fetch": "^2.3.0",
26-
"nyc": "^13.3.0",
2728
"prettier": "^1.16.4",
2829
"tape": "^4.10.1",
2930
"typescript": "^3.3.3"

0 commit comments

Comments
 (0)