Skip to content

Commit 7c348e1

Browse files
authored
ci: use codecov/codecov-action to report coverage (#3779)
1 parent ce618cc commit 7c348e1

File tree

9 files changed

+939
-266
lines changed

9 files changed

+939
-266
lines changed

.codacy.yml

-11
This file was deleted.

.codecov.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ ignore:
22
- "packages/**/src/defaults.ts"
33
- "packages/**/src/index.ts"
44
- "packages/**/src/plugin.ts"
5-
- "packages/core-interfaces"

.github/workflows/benchmark.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Benchmarking
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "develop"
8+
pull_request:
9+
types: [ready_for_review, synchronize, opened]
10+
11+
jobs:
12+
benchmark:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [12.x]
18+
19+
steps:
20+
- uses: actions/checkout@v1
21+
22+
- name: Cache node modules
23+
uses: actions/cache@v1
24+
with:
25+
path: node_modules
26+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: ${{ runner.os }}-node-
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
34+
- name: Install & Build
35+
run: yarn setup
36+
37+
- name: Benchmark
38+
run: yarn bench

.github/workflows/e2e.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: End-to-End Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "develop"
8+
pull_request:
9+
types: [ready_for_review, synchronize, opened]
10+
11+
jobs:
12+
e2e:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [12.x]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Cache node modules
22+
uses: actions/cache@v1
23+
with:
24+
path: node_modules
25+
key: ${{ runner.os }}-e2e-${{ hashFiles('**/yarn.lock') }}
26+
restore-keys: ${{ runner.os }}-e2e-
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- name: Install and build packages
32+
run: yarn setup
33+
- name: Docker compose up
34+
run: cd __tests__/e2e/lib/config && docker-compose up -d
35+
- name: Let the network run during 5min
36+
run: sleep 300
37+
- name: Show logs - node0
38+
if: always()
39+
run: docker logs config_core0_1
40+
- name: Show logs - node1
41+
if: always()
42+
run: docker logs config_core1_1
43+
- name: Show logs - node2
44+
if: always()
45+
run: docker logs config_core2_1
46+
- name: Show logs - node3
47+
if: always()
48+
run: docker logs config_core3_1
49+
- name: Show logs - node4
50+
if: always()
51+
run: docker logs config_core4_1

0 commit comments

Comments
 (0)