Skip to content

Commit fa3fe7c

Browse files
alexkvakmeskill
authored andcommitted
build: migrate to github actions
1 parent 47d2fcd commit fa3fe7c

File tree

4 files changed

+51
-13
lines changed

4 files changed

+51
-13
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node: [ 8, 10, 12, 14, 16, 18, 20 ]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Install dependencies
28+
run: npm install
29+
- run: npm run build
30+
- run: npm run test:ci
31+
32+
- name: Coveralls GitHub Action
33+
uses: coverallsapp/github-action@master
34+
env:
35+
COVERALLS_FLAG_NAME: run-${{ matrix.node-version }}
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
parallel: true
39+
40+
finish:
41+
needs: build
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Coveralls Finished
45+
uses: coverallsapp/github-action@master
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
parallel-finished: true

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tinkoff Utils [![Build](https://travis-ci.org/Tinkoff/utils.js.svg?branch=master)](https://travis-ci.org/Tinkoff/utils.js) [![Coverage Status](https://coveralls.io/repos/github/Tinkoff/utils.js/badge.svg?branch=master&t=CdowK8)](https://coveralls.io/github/Tinkoff/utils.js?branch=master)
1+
# Tinkoff Utils [![Build status](https://img.shields.io/github/actions/workflow/status/Tinkoff/utils.js/build.yml?branch=master)](https://img.shields.io/github/actions/workflow/status/Tinkoff/utils.js/build.yml?branch=master) [![Coverage Status](https://coveralls.io/repos/github/Tinkoff/utils.js/badge.svg?branch=master&t=CdowK8)](https://coveralls.io/github/Tinkoff/utils.js?branch=master)
22

33
> Fast, small and purely functional utility library
44

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"version": "2.3.2",
44
"author": "Tinkoff team",
55
"scripts": {
6+
"build": "tsc && babel ./ts_temp -d build",
67
"release": "node ./releaseUtils/index.js",
78
"benchmark": "ts-node --project tsconfig.benchmark.json runBenchmark.ts",
89
"prebenchmark": "npm install --no-save ts-node lodash ramda lazy.js underscore",
910
"docs": "node ./generate/docs/index.js",
1011
"test": "jest --coverage",
11-
"test:ci": "npm run test -- --maxWorkers=4 && cat ./coverage/lcov.info | coveralls"
12+
"test:ci": "npm run test -- --maxWorkers=50%"
1213
},
1314
"description": "Fast, small and purely functional utility library",
1415
"repository": "https://github.com/Tinkoff/utils.js",
@@ -34,7 +35,6 @@
3435
"babel-plugin-transform-es2015-modules-simple-commonjs": "^0.3.0",
3536
"benchmark": "^2.1.4",
3637
"chalk": "^2.4.1",
37-
"coveralls": "^3.0.1",
3838
"esdoc": "^1.1.0",
3939
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
4040
"esdoc-importpath-plugin": "^1.0.2",

0 commit comments

Comments
 (0)