forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
128 lines (105 loc) · 3.77 KB
/
vm-nightly-test.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
name: VM Nightly
on:
schedule:
- cron: 0 0 * * *
env:
cwd: ${{github.workspace}}/packages/vm
defaults:
run:
working-directory: packages/vm
jobs:
test-vm-api:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v2
with:
submodules: recursive
# This is specific to Nightly test 1/2.
# The job needs to run with a fresh combination of lockfiles, to warm up the cache.
# So in this step, we remove the lockfiles
- run: rm package-lock.json packages/*/package-lock.json
working-directory: ${{github.workspace}}
# This is specific to Nightly test 2/2.
# Here, we generate new lockfiles
- run: npm install
working-directory: ${{github.workspace}}
- run: npm run build
working-directory: ${{github.workspace}}
- run: npm run test:API
- run: npm run test:API:browser
test-vm-state:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v2
with:
submodules: recursive
# This is specific to Nightly test 1/2.
# The job needs to run with a fresh combination of lockfiles, to warm up the cache.
# So in this step, we remove the lockfiles
- run: rm package-lock.json packages/*/package-lock.json
working-directory: ${{github.workspace}}
# This is specific to Nightly test 2/2.
# Here, we generate new lockfiles
- run: npm install
working-directory: ${{github.workspace}}
- run: npm run build
working-directory: ${{github.workspace}}
- run: npm run test:state:allForks
test-vm-blockchain:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v2
with:
submodules: recursive
# This is specific to Nightly test 1/2.
# The job needs to run with a fresh combination of lockfiles, to warm up the cache.
# So in this step, we remove the lockfiles
- run: rm package-lock.json packages/*/package-lock.json
working-directory: ${{github.workspace}}
# This is specific to Nightly test 2/2.
# Here, we generate new lockfiles
- run: npm install
working-directory: ${{github.workspace}}
# This is specific to Nightly test 3/2.
# In the case lockfiles a.re not so fresh, use information from cache
- name: Dependency cache.
# We need this to save cache afterwards, so other jobs can benefit from it.
uses: actions/cache@v2
id: cache
with:
key: VM-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
path: '**/node_modules'
- run: npm run build
working-directory: ${{github.workspace}}
- run: npm run test:blockchain:allForks
working-directory: '${{ env.cwd }}'
test-vm-slow:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v2
with:
submodules: recursive
# This is specific to Nightly test 1/2.
# The job needs to run with a fresh combination of lockfiles, to warm up the cache.
# So in this step, we remove the lockfiles
- run: rm package-lock.json packages/*/package-lock.json
working-directory: ${{github.workspace}}
# This is specific to Nightly test 2/2.
# Here, we generate new lockfiles
- run: npm install
working-directory: ${{github.workspace}}
- run: npm run build
working-directory: ${{github.workspace}}
- run: npm run test:state:slow