Skip to content

Commit 94f3067

Browse files
authored
Merge pull request #1147 from jzelinskie/codeql-threads
.github: use 8 cores for codeql
2 parents 9dc7a1f + 299f25e commit 94f3067

File tree

5 files changed

+19
-34
lines changed

5 files changed

+19
-34
lines changed

.github/workflows/build-test.yaml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ jobs:
3939
runs-on: "ubuntu-latest"
4040
steps:
4141
- uses: "actions/checkout@v3"
42-
- uses: "actions/setup-go@v3"
42+
- uses: "authzed/actions/setup-go@main"
4343
with:
4444
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"
4845
- uses: "authzed/actions/go-build@main"
4946

5047
image-build:
@@ -58,10 +55,9 @@ jobs:
5855
tags: "authzed/spicedb:ci"
5956
buildx: false
6057
qemu: false
61-
- uses: "actions/setup-go@v3"
58+
- uses: "authzed/actions/setup-go@main"
6259
with:
6360
go-version: "${{ env.GO_VERSION }}"
64-
cache: "true"
6561
- uses: "authzed/actions/go-test@main"
6662
with:
6763
working_directory: "cmd/spicedb"
@@ -72,10 +68,9 @@ jobs:
7268
runs-on: "ubuntu-latest"
7369
steps:
7470
- uses: "actions/checkout@v3"
75-
- uses: "actions/setup-go@v3"
71+
- uses: "authzed/actions/setup-go@main"
7672
with:
7773
go-version: "${{ env.GO_VERSION }}"
78-
cache: "true"
7974
- uses: "authzed/actions/go-test@main"
8075
with:
8176
tags: "ci,skipintegrationtests"
@@ -86,10 +81,9 @@ jobs:
8681
runs-on: "ubuntu-latest"
8782
steps:
8883
- uses: "actions/checkout@v3"
89-
- uses: "actions/setup-go@v3"
84+
- uses: "authzed/actions/setup-go@main"
9085
with:
9186
go-version: "${{ env.GO_VERSION }}"
92-
cache: "true"
9387
- uses: "authzed/actions/go-test@main"
9488
with:
9589
tags: "ci,docker"
@@ -105,10 +99,9 @@ jobs:
10599
datastore: ["crdb", "mysql", "postgres", "spanner"]
106100
steps:
107101
- uses: "actions/checkout@v3"
108-
- uses: "actions/setup-go@v3"
102+
- uses: "authzed/actions/setup-go@main"
109103
with:
110104
go-version: "${{ env.GO_VERSION }}"
111-
cache: "true"
112105
- uses: "authzed/actions/go-test@main"
113106
with:
114107
tags: "ci,docker"
@@ -124,23 +117,22 @@ jobs:
124117
datastore: ["cockroachdb", "mysql", "postgres", "spanner"]
125118
steps:
126119
- uses: "actions/checkout@v3"
127-
- uses: "actions/setup-go@v3"
120+
- uses: "authzed/actions/setup-go@main"
128121
with:
129122
go-version: "${{ env.GO_VERSION }}"
130-
cache: "true"
131123
- name: "Run Datastore Consistency Tests"
132124
working-directory: "internal/services/integrationtesting"
133125
run: "go test --failfast -count=1 -timeout '10m' --tags='ci,docker,datastoreconsistency' ./... -run TestConsistencyPerDatastore/${{ matrix.datastore }}"
134126

135127
e2e:
136128
name: "E2E"
137-
runs-on: "ubuntu-latest"
129+
runs-on: "ubuntu-latest-8-cores"
138130
steps:
139131
- uses: "actions/checkout@v3"
140-
- uses: "actions/setup-go@v3"
132+
- uses: "authzed/actions/setup-go@main"
141133
with:
142134
go-version: "${{ env.GO_VERSION }}"
143-
cache: "true"
135+
go-version-file: "e2e/go.mod"
144136
cache-dependency-path: "e2e/go.sum"
145137
- name: "Cache Binaries"
146138
id: "cache-binaries"
@@ -186,10 +178,10 @@ jobs:
186178
runs-on: "ubuntu-latest"
187179
steps:
188180
- uses: "actions/checkout@v3"
189-
- uses: "actions/setup-go@v3"
181+
- uses: "authzed/actions/setup-go@main"
190182
with:
191183
go-version: "${{ env.GO_VERSION }}"
192-
cache: "true"
184+
go-version-file: "tools/analyzers/go.mod"
193185
cache-dependency-path: "tools/analyzers/go.sum"
194186
- uses: "authzed/actions/go-test@main"
195187
with:
@@ -199,10 +191,9 @@ jobs:
199191
runs-on: "ubuntu-latest"
200192
steps:
201193
- uses: "actions/checkout@v3"
202-
- uses: "actions/setup-go@v3"
194+
- uses: "authzed/actions/setup-go@main"
203195
with:
204196
go-version: "${{ env.GO_VERSION }}"
205-
cache: "false" # do not cache to prevent cache poisoning
206197
- name: "Install wasmbrowsertest"
207198
run: "go install github.com/agnivade/wasmbrowsertest@latest"
208199
- name: "Run WASM Tests"
@@ -213,10 +204,9 @@ jobs:
213204
runs-on: "ubuntu-latest"
214205
steps:
215206
- uses: "actions/checkout@v3"
216-
- uses: "actions/setup-go@v3"
207+
- uses: "authzed/actions/setup-go@main"
217208
with:
218209
go-version: "${{ env.GO_VERSION }}"
219-
cache: "false" # do not cache to prevent cache poisoning
220210
- name: "Install Go Tools"
221211
run: "./hack/install-tools.sh"
222212
- uses: "authzed/actions/buf-generate@main"

.github/workflows/lint.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
runs-on: "ubuntu-latest"
1616
steps:
1717
- uses: "actions/checkout@v3"
18-
- uses: "actions/setup-go@v3"
18+
- uses: "authzed/actions/setup-go@main"
1919
with:
2020
go-version: "${{ env.GO_VERSION }}"
21-
cache: "true"
2221
- uses: "authzed/actions/gofumpt@main"
2322
- uses: "authzed/actions/gofumpt@main"
2423
with:
@@ -67,7 +66,7 @@ jobs:
6766

6867
codeql:
6968
name: "Analyze with CodeQL"
70-
runs-on: "ubuntu-latest"
69+
runs-on: "ubuntu-latest-8-cores"
7170
permissions:
7271
actions: "read"
7372
contents: "read"
@@ -85,8 +84,7 @@ jobs:
8584
runs-on: "ubuntu-latest"
8685
steps:
8786
- uses: "actions/checkout@v3"
88-
- name: "Run Trivy vulnerability scanner"
89-
uses: "aquasecurity/trivy-action@master"
87+
- uses: "aquasecurity/[email protected]"
9088
with:
9189
scan-type: "fs"
9290
ignore-unfixed: true

.github/workflows/nightly.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
- uses: "actions/checkout@v3"
1717
with:
1818
fetch-depth: 0
19-
- uses: "actions/setup-go@v3"
19+
- uses: "authzed/actions/setup-go@main"
2020
with:
2121
go-version: "${{ env.GO_VERSION }}"
22-
cache: "true"
2322
- uses: "authzed/actions/docker-login@main"
2423
with:
2524
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"

.github/workflows/release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
- uses: "actions/checkout@v3"
1717
with:
1818
fetch-depth: 0
19-
- uses: "actions/setup-go@v3"
19+
- uses: "authzed/actions/setup-go@main"
2020
with:
2121
go-version: "${{ env.GO_VERSION }}"
22-
cache: "true"
2322
- uses: "authzed/actions/docker-login@main"
2423
with:
2524
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"

.github/workflows/wasm.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
- uses: "actions/checkout@v3"
1616
with:
1717
ref: "${{ env.GITHUB_SHA }}"
18-
- uses: "actions/setup-go@v3"
18+
- uses: "authzed/actions/setup-go@main"
1919
with:
2020
go-version: "${{ env.GO_VERSION }}"
21-
cache: "true"
2221
- run: |
2322
echo "Building WASM..."
2423
GOOS=js GOARCH=wasm go build -o dist/development.wasm ./pkg/development/wasm/...

0 commit comments

Comments
 (0)