65 lines (62 loc) 路 2.21 KB
/
test-sim.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
name: Sim tests
on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable
jobs:
tests-sim:
name: Sim tests
runs-on: ubuntu-latest
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "lts/gallium"
- name: Node.js version
id: node
run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")"
- name: Restore dependencies
uses: actions/cache@master
id: cache-deps
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
- name: Install & build
if: steps.cache-deps.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --ignore-optional && yarn build
- name: Build
run: yarn build
if: steps.cache-deps.outputs.cache-hit == 'true'
# </common-build>
- name: Simulation single thread single node test
run: yarn test:sim:singleThread
working-directory: packages/beacon-node
- name: Simulation single thread multi node test
run: yarn test:sim:singleThreadMultiNode
working-directory: packages/beacon-node
# - name: Simulation multi thread multi node test phase0
# run: yarn test:sim:multiThread
# working-directory: packages/beacon-node
# env: {RUN_ONLY_SIM_TEST: phase0}
# - name: Simulation multi thread multi node test altair epoch genesis
# run: yarn test:sim:multiThread
# working-directory: packages/beacon-node
# env: {RUN_ONLY_SIM_TEST: altair-genesis}
# - name: Simulation multi thread multi node test altair epoch 2
# run: yarn test:sim:multiThread
# working-directory: packages/beacon-node
# env: {RUN_ONLY_SIM_TEST: altair-epoch2}
- name: Upload debug log test files
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: debug-test-logs
path: packages/beacon-node/test-logs