13
13
jobs :
14
14
test :
15
15
name : Go Tests
16
- runs-on : ubuntu-8
16
+ container :
17
+ image : ghcr.io/catthehacker/ubuntu:js-22.04
18
+ runs-on : [self-hosted, X64]
17
19
18
20
# Creates a redis container for redis tests
19
21
services :
34
36
submodules : true
35
37
36
38
- name : Install dependencies
37
- run : sudo apt update && sudo apt install -y wabt gotestsum
39
+ run : >
40
+ sudo apt update && sudo apt install -y wabt gotestsum
41
+ cmake build-essential bison golang clang make wabt
38
42
39
43
- name : Setup nodejs
40
44
uses : actions/setup-node@v3
@@ -75,13 +79,16 @@ jobs:
75
79
toolchain : " stable"
76
80
override : true
77
81
82
+ - name : Install cbindgen
83
+ run : cargo install cbindgen
84
+
78
85
- name : Cache Build Products
79
86
uses : actions/cache@v3
80
87
with :
81
88
path : |
82
89
~/go/pkg/mod
83
90
~/.cache/go-build
84
- key : ${{ runner.os }}-go-${{ hashFiles('**/ go.sum') }}-${{ matrix.test-mode }}
91
+ key : ${{ runner.os }}-go-${{ hashFiles('go.sum') }}-${{ matrix.test-mode }}
85
92
restore-keys : ${{ runner.os }}-go-
86
93
87
94
- name : Cache Rust Build Products
@@ -137,8 +144,8 @@ jobs:
137
144
138
145
- name : Set environment variables
139
146
run : |
140
- mkdir -p target/tmp/deadbeefbee
141
- echo "TMPDIR=$(pwd)/target/tmp/deadbeefbee " >> "$GITHUB_ENV"
147
+ mkdir -p target/tmp/x
148
+ echo "TMPDIR=$(pwd)/target/tmp/x " >> "$GITHUB_ENV"
142
149
echo "GOMEMLIMIT=6GiB" >> "$GITHUB_ENV"
143
150
echo "GOGC=80" >> "$GITHUB_ENV"
144
151
@@ -156,7 +163,7 @@ jobs:
156
163
157
164
- name : run redis tests
158
165
if : matrix.test-mode == 'defaults'
159
- run : TEST_REDIS=redis://localhost :6379/0 gotestsum --format short-verbose -- -p 1 -run TestRedis ./arbnode/... ./system_tests/... -coverprofile=coverage-redis.txt -covermode=atomic -coverpkg=./...
166
+ run : TEST_REDIS=redis://redis :6379/0 gotestsum --format short-verbose -- -p 1 -run TestRedis ./arbnode/... ./system_tests/... -coverprofile=coverage-redis.txt -covermode=atomic -coverpkg=./...
160
167
161
168
- name : run challenge tests
162
169
if : matrix.test-mode == 'challenge'
@@ -172,4 +179,3 @@ jobs:
172
179
files : ./coverage.txt,./coverage-redis.txt
173
180
verbose : false
174
181
token : ${{ secrets.CODECOV_TOKEN }}
175
-
0 commit comments