forked from NethermindEth/nethermind
-
Notifications
You must be signed in to change notification settings - Fork 1
177 lines (175 loc) · 7.48 KB
/
cc-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
name: Build with Code Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
neth-tests:
name: Nethermind Tests
env:
EXCLUDE_TEST_PROJECTS: '/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Nethermind.HashLib]*%2c[Nethermind.Core.Test]*%2c[Nethermind.Blockchain.Test]*%2c[Nethermind.DataMarketplace.Test]*%2c[Ethereum.Test.Base]*"'
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macOS]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Unshallow fetching
run: git fetch --unshallow
- name: Updating submodules
run: git submodule update --init src/Dirichlet src/rocksdb-sharp
- name: Installing Linux packages
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libsnappy-dev libc6-dev libc6
- name: Nethermind.Abi.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Abi.Test
- name: Nethermind.AuRa.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.AuRa.Test
- name: Nethermind.BeaconNode.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.BeaconNode.Test
- name: Nethermind.Blockchain.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Blockchain.Test
- name: Nethermind.Bls.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Bls.Test
- name: Nethermind.Clique.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Clique.Test
- name: Nethermind.Config.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Config.Test
- name: Nethermind.Core.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Core.Test
- name: Nethermind.Evm.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Evm.Test
- name: Nethermind.Facade.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Facade.Test
- name: Nethermind.Logging.NLog.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Logging.NLog.Test
- name: Nethermind.JsonRpc.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.JsonRpc.Test
- name: Nethermind.Mining.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Mining.Test
- name: Nethermind.Network.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Network.Test
- name: Nethermind.Secp256k1.Test.Linux
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Secp256k1.Test
- name: Nethermind.Runner.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Runner.Test
- name: Nethermind.Ssz.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Ssz.Test
- name: Nethermind.Core2.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Core2.Test
- name: Nethermind.Store.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Store.Test
- name: Nethermind.Wallet.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Wallet.Test
- name: Nethermind.DataMarketplace.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Test
- name: Nethermind.DataMarketplace.Consumers.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Consumers.Test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
name: codecov-nethermind
eth-tests:
name: Ethereum Tests
env:
EXCLUDE_TEST_PROJECTS: '/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Nethermind.HashLib]*%2c[Nethermind.Core.Test]*%2c[Nethermind.Blockchain.Test]*%2c[Nethermind.DataMarketplace.Test]*%2c[Ethereum.Test.Base]*"'
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macOS]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Unshallow fetching
run: git fetch --unshallow
- name: Updating submodules
run: git -c submodule."src/eth2.0-spec-tests".update=none submodule update --init
- name: Ethereum.Basic.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Basic.Test
- name: Ethereum.Blockchain.Block.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Blockchain.Block.Test
- name: Ethereum.Blockchain.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Blockchain.Test
- name: Ethereum.Difficulty.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Difficulty.Test
- name: Ethereum.HexPrefix.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.HexPrefix.Test
- name: Ethereum.KeyAddress.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.KeyAddress.Test
- name: Ethereum.PoW.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Rlp.Test
- name: Ethereum.Rlp.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Basic.Test
- name: Ethereum.Transaction.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Transaction.Test
- name: Ethereum.Transition.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Transition.Test
- name: Ethereum.Trie.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Trie.Test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
name: codecov-nethermind
# eth2-tests:
# name: Ethereum 2.0 Tests
# env:
# EXCLUDE_TEST_PROJECTS: '/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Nethermind.HashLib]*%2c[Nethermind.Core.Test]*%2c[Nethermind.Blockchain.Test]*%2c[Nethermind.DataMarketplace.Test]*%2c[Ethereum.Test.Base]*"'
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # os: [ubuntu-latest, windows-latest, macOS]
# os: [ubuntu-latest]
# steps:
# - uses: actions/checkout@v2-beta
# - name: Updating submodules
# run: git -c submodule."src/tests".update=none submodule update --init
# - name: Ethereum.Bls.Test
# run: |
# dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum2.Bls.Test
# - name: Ethereum.Ssz.Test
# run: |
# dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum2.Ssz.Test
# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{secrets.CODECOV_TOKEN}}
# name: codecov-nethermind