39
39
runs-on : " ubuntu-latest"
40
40
steps :
41
41
- uses : " actions/checkout@v3"
42
- - uses : " actions/setup-go@v3 "
42
+ - uses : " authzed/ actions/setup-go@main "
43
43
with :
44
44
go-version : " ${{ env.GO_VERSION }}"
45
- cache : " true"
46
- - name : " go mod download" # prevent CI cache poisoning by getting all deps
47
- run : " go mod download"
48
45
- uses : " authzed/actions/go-build@main"
49
46
50
47
image-build :
58
55
tags : " authzed/spicedb:ci"
59
56
buildx : false
60
57
qemu : false
61
- - uses : " actions/setup-go@v3 "
58
+ - uses : " authzed/ actions/setup-go@main "
62
59
with :
63
60
go-version : " ${{ env.GO_VERSION }}"
64
- cache : " true"
65
61
- uses : " authzed/actions/go-test@main"
66
62
with :
67
63
working_directory : " cmd/spicedb"
72
68
runs-on : " ubuntu-latest"
73
69
steps :
74
70
- uses : " actions/checkout@v3"
75
- - uses : " actions/setup-go@v3 "
71
+ - uses : " authzed/ actions/setup-go@main "
76
72
with :
77
73
go-version : " ${{ env.GO_VERSION }}"
78
- cache : " true"
79
74
- uses : " authzed/actions/go-test@main"
80
75
with :
81
76
tags : " ci,skipintegrationtests"
86
81
runs-on : " ubuntu-latest"
87
82
steps :
88
83
- uses : " actions/checkout@v3"
89
- - uses : " actions/setup-go@v3 "
84
+ - uses : " authzed/ actions/setup-go@main "
90
85
with :
91
86
go-version : " ${{ env.GO_VERSION }}"
92
- cache : " true"
93
87
- uses : " authzed/actions/go-test@main"
94
88
with :
95
89
tags : " ci,docker"
@@ -105,10 +99,9 @@ jobs:
105
99
datastore : ["crdb", "mysql", "postgres", "spanner"]
106
100
steps :
107
101
- uses : " actions/checkout@v3"
108
- - uses : " actions/setup-go@v3 "
102
+ - uses : " authzed/ actions/setup-go@main "
109
103
with :
110
104
go-version : " ${{ env.GO_VERSION }}"
111
- cache : " true"
112
105
- uses : " authzed/actions/go-test@main"
113
106
with :
114
107
tags : " ci,docker"
@@ -124,23 +117,22 @@ jobs:
124
117
datastore : ["cockroachdb", "mysql", "postgres", "spanner"]
125
118
steps :
126
119
- uses : " actions/checkout@v3"
127
- - uses : " actions/setup-go@v3 "
120
+ - uses : " authzed/ actions/setup-go@main "
128
121
with :
129
122
go-version : " ${{ env.GO_VERSION }}"
130
- cache : " true"
131
123
- name : " Run Datastore Consistency Tests"
132
124
working-directory : " internal/services/integrationtesting"
133
125
run : " go test --failfast -count=1 -timeout '10m' --tags='ci,docker,datastoreconsistency' ./... -run TestConsistencyPerDatastore/${{ matrix.datastore }}"
134
126
135
127
e2e :
136
128
name : " E2E"
137
- runs-on : " ubuntu-latest"
129
+ runs-on : " ubuntu-latest-8-cores "
138
130
steps :
139
131
- uses : " actions/checkout@v3"
140
- - uses : " actions/setup-go@v3 "
132
+ - uses : " authzed/ actions/setup-go@main "
141
133
with :
142
134
go-version : " ${{ env.GO_VERSION }}"
143
- cache : " true "
135
+ go-version-file : " e2e/go.mod "
144
136
cache-dependency-path : " e2e/go.sum"
145
137
- name : " Cache Binaries"
146
138
id : " cache-binaries"
@@ -186,10 +178,10 @@ jobs:
186
178
runs-on : " ubuntu-latest"
187
179
steps :
188
180
- uses : " actions/checkout@v3"
189
- - uses : " actions/setup-go@v3 "
181
+ - uses : " authzed/ actions/setup-go@main "
190
182
with :
191
183
go-version : " ${{ env.GO_VERSION }}"
192
- cache : " true "
184
+ go-version-file : " tools/analyzers/go.mod "
193
185
cache-dependency-path : " tools/analyzers/go.sum"
194
186
- uses : " authzed/actions/go-test@main"
195
187
with :
@@ -199,10 +191,9 @@ jobs:
199
191
runs-on : " ubuntu-latest"
200
192
steps :
201
193
- uses : " actions/checkout@v3"
202
- - uses : " actions/setup-go@v3 "
194
+ - uses : " authzed/ actions/setup-go@main "
203
195
with :
204
196
go-version : " ${{ env.GO_VERSION }}"
205
- cache : " false" # do not cache to prevent cache poisoning
206
197
- name : " Install wasmbrowsertest"
207
198
run : " go install github.com/agnivade/wasmbrowsertest@latest"
208
199
- name : " Run WASM Tests"
@@ -213,10 +204,9 @@ jobs:
213
204
runs-on : " ubuntu-latest"
214
205
steps :
215
206
- uses : " actions/checkout@v3"
216
- - uses : " actions/setup-go@v3 "
207
+ - uses : " authzed/ actions/setup-go@main "
217
208
with :
218
209
go-version : " ${{ env.GO_VERSION }}"
219
- cache : " false" # do not cache to prevent cache poisoning
220
210
- name : " Install Go Tools"
221
211
run : " ./hack/install-tools.sh"
222
212
- uses : " authzed/actions/buf-generate@main"
0 commit comments