Skip to content

Commit f88b137

Browse files
authored
ci: adding workflow (#255)
* Adding workflow * updaging workflow
1 parent ef6d32f commit f88b137

File tree

4 files changed

+32
-63
lines changed

4 files changed

+32
-63
lines changed

.github/workflows/validation.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Flow check, Lint and Tests
2+
3+
on: push
4+
5+
jobs:
6+
validation:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Use Node.js 12.x
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 12.x
14+
- name: Cache Node.js modules
15+
uses: actions/cache@v2
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.OS }}-node-
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Lint
24+
run: npm run lint
25+
- name: Tests
26+
run: npm run test:only
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v1
29+
with:
30+
fail_ci_if_error: true

.travis.yml

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

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@
2020
"typings": "index.d.ts",
2121
"scripts": {
2222
"test": "npm run lint && npm run check && npm run testonly",
23-
"test:ci": "npm run lint && npm run check && npm run testonly:coveralls",
23+
"test:ci": "npm run lint && npm run check && npm run testonly -- --coverage",
2424
"lint": "eslint src",
2525
"check": "flow check --max-warnings 0",
2626
"build": "babel src --ignore src/__tests__ --out-dir dist/ ; cp src/index.js dist/index.js.flow ; cp src/index.d.ts dist/",
2727
"watch": "babel resources/watch.js | node",
2828
"testonly": "jest src",
29-
"testonly:coveralls": "jest src --coverage && cat ./coverage/lcov.info | coveralls",
3029
"preversion": ". ./resources/checkgit.sh && npm test",
3130
"prepublish": ". ./resources/prepublish.sh"
3231
},
@@ -45,7 +44,6 @@
4544
"@babel/preset-env": "7.7.1",
4645
"@babel/preset-flow": "7.0.0",
4746
"babel-eslint": "10.0.3",
48-
"coveralls": "3.0.7",
4947
"eslint": "6.6.0",
5048
"flow-bin": "0.112.0",
5149
"jest": "24.9.0",

yarn.lock

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,18 +1488,6 @@ [email protected], core-util-is@~1.0.0:
14881488
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
14891489
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
14901490

1491-
1492-
version "3.0.7"
1493-
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.7.tgz#1eca48e47976e9573d6a2f18b97c2fea4026f34a"
1494-
integrity sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA==
1495-
dependencies:
1496-
growl "~> 1.10.0"
1497-
js-yaml "^3.13.1"
1498-
lcov-parse "^0.0.10"
1499-
log-driver "^1.2.7"
1500-
minimist "^1.2.0"
1501-
request "^2.86.0"
1502-
15031491
cross-spawn@^6.0.0, cross-spawn@^6.0.5:
15041492
version "6.0.5"
15051493
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2151,11 +2139,6 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2:
21512139
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
21522140
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
21532141

2154-
"growl@~> 1.10.0":
2155-
version "1.10.5"
2156-
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
2157-
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
2158-
21592142
growly@^1.3.0:
21602143
version "1.3.0"
21612144
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
@@ -3098,11 +3081,6 @@ kleur@^3.0.3:
30983081
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
30993082
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
31003083

3101-
lcov-parse@^0.0.10:
3102-
version "0.0.10"
3103-
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
3104-
integrity sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=
3105-
31063084
left-pad@^1.3.0:
31073085
version "1.3.0"
31083086
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
@@ -3149,11 +3127,6 @@ lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
31493127
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
31503128
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
31513129

3152-
log-driver@^1.2.7:
3153-
version "1.2.7"
3154-
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
3155-
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==
3156-
31573130
loose-envify@^1.0.0:
31583131
version "1.4.0"
31593132
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -3933,7 +3906,7 @@ request-promise-native@^1.0.5:
39333906
stealthy-require "^1.1.1"
39343907
tough-cookie "^2.3.3"
39353908

3936-
request@^2.86.0, request@^2.87.0:
3909+
request@^2.87.0:
39373910
version "2.88.0"
39383911
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
39393912
integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==

0 commit comments

Comments
 (0)