Skip to content

Commit 7a6f655

Browse files
sergeysovabigslycat
authored andcommitted
ci: migrate to github actions
1 parent 0330e84 commit 7a6f655

File tree

3 files changed

+73
-34
lines changed

3 files changed

+73
-34
lines changed

.github/workflows/check.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint and test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [12.x, 14.x, 15.x]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
21+
- name: Install dependencies
22+
run: yarn --frozen-lockfile
23+
24+
- name: Lint
25+
run: yarn lint
26+
27+
- name: Flow check
28+
run: yarn flow
29+
30+
- name: Tests
31+
run: yarn test:ci
32+
env:
33+
CI: true

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup Node.js 14.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 14.x
19+
20+
- name: Install dependencies
21+
run: yarn --frozen-lockfile
22+
23+
- name: Lint
24+
run: yarn lint
25+
26+
- name: Flow check
27+
run: yarn flow
28+
29+
- name: Tests
30+
run: yarn test:ci
31+
env:
32+
CI: true
33+
34+
- name: Build
35+
run: yarn build
36+
37+
- name: Semantic release
38+
run: npx semantic-release

yarn.lock

+2-34
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ debug@^3.1.0:
27972797
dependencies:
27982798
ms "^2.1.1"
27992799

2800-
debuglog@*, debuglog@^1.0.1:
2800+
debuglog@^1.0.1:
28012801
version "1.0.1"
28022802
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
28032803
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -4264,7 +4264,7 @@ import-local@^3.0.2:
42644264
pkg-dir "^4.2.0"
42654265
resolve-cwd "^3.0.0"
42664266

4267-
imurmurhash@*, imurmurhash@^0.1.4:
4267+
imurmurhash@^0.1.4:
42684268
version "0.1.4"
42694269
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
42704270
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -5521,11 +5521,6 @@ lockfile@^1.0.4:
55215521
dependencies:
55225522
signal-exit "^3.0.2"
55235523

5524-
lodash._baseindexof@*:
5525-
version "3.1.0"
5526-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
5527-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
5528-
55295524
lodash._baseuniq@~4.6.0:
55305525
version "4.6.0"
55315526
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -5534,33 +5529,11 @@ lodash._baseuniq@~4.6.0:
55345529
lodash._createset "~4.0.0"
55355530
lodash._root "~3.0.0"
55365531

5537-
lodash._bindcallback@*:
5538-
version "3.0.1"
5539-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
5540-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
5541-
5542-
lodash._cacheindexof@*:
5543-
version "3.0.2"
5544-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
5545-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
5546-
5547-
lodash._createcache@*:
5548-
version "3.1.2"
5549-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
5550-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
5551-
dependencies:
5552-
lodash._getnative "^3.0.0"
5553-
55545532
lodash._createset@~4.0.0:
55555533
version "4.0.3"
55565534
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
55575535
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
55585536

5559-
lodash._getnative@*, lodash._getnative@^3.0.0:
5560-
version "3.9.1"
5561-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
5562-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
5563-
55645537
lodash._root@~3.0.0:
55655538
version "3.0.1"
55665539
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
@@ -5601,11 +5574,6 @@ lodash.isstring@^4.0.1:
56015574
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
56025575
integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
56035576

5604-
lodash.restparam@*:
5605-
version "3.6.1"
5606-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
5607-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
5608-
56095577
lodash.set@^4.3.2:
56105578
version "4.3.2"
56115579
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"

0 commit comments

Comments
 (0)