Skip to content

Commit bb4f791

Browse files
committed
ci: thick runners
1 parent bd3a6eb commit bb4f791

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Continuous Integration
2-
32
on:
43
push:
54
branches: [master]
65
pull_request:
7-
types: [opened, synchronize, reopened]
8-
workflow_dispatch:
6+
branches: [master]
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
cancel-in-progress: true
13+
group: ${{ github.workflow }}-${{ github.ref }}
914

1015
env:
1116
CARGO_TERM_COLOR: always
@@ -15,8 +20,8 @@ env:
1520
jobs:
1621
unit-tests:
1722
name: Run unit tests
18-
runs-on: ubuntu-latest-m
19-
timeout-minutes: 60
23+
runs-on: nscloud-ubuntu-22.04-amd64-16x32
24+
timeout-minutes: 20
2025
services:
2126
ipfs:
2227
image: ipfs/go-ipfs:v0.10.0
@@ -28,6 +33,7 @@ jobs:
2833
POSTGRES_PASSWORD: postgres
2934
POSTGRES_DB: graph_node_test
3035
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
36+
POSTGRESQL_EXTRA_FLAGS: "-c max_connections=1000"
3137
options: >-
3238
--health-cmd pg_isready
3339
--health-interval 10s
@@ -60,8 +66,8 @@ jobs:
6066

6167
runner-tests:
6268
name: Subgraph Runner integration tests
63-
runs-on: ubuntu-latest
64-
timeout-minutes: 60
69+
runs-on: nscloud-ubuntu-22.04-amd64-16x32
70+
timeout-minutes: 20
6571
services:
6672
ipfs:
6773
image: ipfs/go-ipfs:v0.10.0
@@ -121,8 +127,8 @@ jobs:
121127

122128
integration-tests:
123129
name: Run integration tests
124-
runs-on: ubuntu-latest
125-
timeout-minutes: 60
130+
runs-on: nscloud-ubuntu-22.04-amd64-16x32
131+
timeout-minutes: 20
126132
services:
127133
ipfs:
128134
image: ipfs/go-ipfs:v0.10.0
@@ -135,6 +141,7 @@ jobs:
135141
POSTGRES_PASSWORD: let-me-in
136142
POSTGRES_DB: graph-node
137143
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
144+
POSTGRESQL_EXTRA_FLAGS: "-c max_connections=1000"
138145
options: >-
139146
--health-cmd pg_isready
140147
--health-interval 10s

0 commit comments

Comments
 (0)