Skip to content

Commit 03f8010

Browse files
committed
chore(ci): limit installs to 10 minutes
1 parent 6fbbd6c commit 03f8010

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.github/workflows/test-all-versions.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
node-version: 18
3535
- name: Install
3636
run: npm ci --ignore-scripts
37+
timeout-minutes: 10
3738
- name: Build
3839
run: npm run compile
3940
- name: Upload Build Artifacts
@@ -57,14 +58,14 @@ jobs:
5758
mongo:
5859
image: mongo
5960
ports:
60-
- 27017:27017
61+
- 27017:27017
6162
mssql:
6263
image: mcr.microsoft.com/mssql/server:2022-latest
6364
env:
6465
MSSQL_SA_PASSWORD: mssql_passw0rd
6566
ACCEPT_EULA: Y
6667
ports:
67-
- 1433:1433
68+
- 1433:1433
6869
options: >-
6970
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -C -Q 'select 1' -b -o /dev/null"
7071
--health-interval 1s
@@ -79,7 +80,7 @@ jobs:
7980
MYSQL_DATABASE: otel_mysql_database
8081
MYSQL_ROOT_PASSWORD: rootpw
8182
ports:
82-
- 3306:3306
83+
- 3306:3306
8384
options: >-
8485
--health-cmd="mysqladmin ping"
8586
--health-interval 10s
@@ -105,7 +106,7 @@ jobs:
105106
POSTGRES_DB: otel_pg_database
106107
POSTGRES_PASSWORD: postgres
107108
ports:
108-
- 5432:5432
109+
- 5432:5432
109110
options: >-
110111
--health-cmd pg_isready
111112
--health-interval 10s
@@ -114,14 +115,14 @@ jobs:
114115
rabbitmq:
115116
image: rabbitmq:3
116117
ports:
117-
- 22221:5672
118+
- 22221:5672
118119
env:
119120
RABBITMQ_DEFAULT_USER: username
120121
RABBITMQ_DEFAULT_PASS: password
121122
redis:
122123
image: redis
123124
ports:
124-
- 6379:6379
125+
- 6379:6379
125126
options: >-
126127
--health-cmd "redis-cli ping"
127128
--health-interval 10s
@@ -171,6 +172,7 @@ jobs:
171172
# Post install scripts are required for some deps for successful test
172173
# runs: sqlite3, better-sqlite3, and possibly esbuild.
173174
run: npm ci
175+
timeout-minutes: 10
174176
- name: Download Build Artifacts
175177
uses: actions/download-artifact@v5
176178
with:

.github/workflows/test.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
node-version: 18
2828
- name: Install
2929
run: npm ci --ignore-scripts
30+
timeout-minutes: 10
3031
# Note: when pushing to main we want to test only what changed in
3132
# last commit. Otherwise we want to test all changes from origin/main.
3233
# So we set the right values for base and head commits depending
@@ -71,18 +72,18 @@ jobs:
7172
memcached:
7273
image: memcached:1.6.39-alpine
7374
ports:
74-
- 11211:11211
75+
- 11211:11211
7576
mongo:
7677
image: mongo
7778
ports:
78-
- 27017:27017
79+
- 27017:27017
7980
mssql:
8081
image: mcr.microsoft.com/mssql/server:2022-latest
8182
env:
8283
MSSQL_SA_PASSWORD: mssql_passw0rd
8384
ACCEPT_EULA: Y
8485
ports:
85-
- 1433:1433
86+
- 1433:1433
8687
options: >-
8788
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -C -Q 'select 1' -b -o /dev/null"
8889
--health-interval 1s
@@ -97,7 +98,7 @@ jobs:
9798
MYSQL_DATABASE: otel_mysql_database
9899
MYSQL_ROOT_PASSWORD: rootpw
99100
ports:
100-
- 3306:3306
101+
- 3306:3306
101102
options: >-
102103
--health-cmd="mysqladmin ping"
103104
--health-interval 10s
@@ -123,7 +124,7 @@ jobs:
123124
POSTGRES_DB: otel_pg_database
124125
POSTGRES_PASSWORD: postgres
125126
ports:
126-
- 5432:5432
127+
- 5432:5432
127128
options: >-
128129
--health-cmd pg_isready
129130
--health-interval 10s
@@ -132,7 +133,7 @@ jobs:
132133
redis:
133134
image: redis
134135
ports:
135-
- 6379:6379
136+
- 6379:6379
136137
options: >-
137138
--health-cmd "redis-cli ping"
138139
--health-interval 10s
@@ -141,11 +142,11 @@ jobs:
141142
cassandra:
142143
image: cassandra:3
143144
ports:
144-
- 9042:9042
145+
- 9042:9042
145146
rabbitmq:
146147
image: rabbitmq:3
147148
ports:
148-
- 22221:5672
149+
- 22221:5672
149150
env:
150151
RABBITMQ_DEFAULT_USER: username
151152
RABBITMQ_DEFAULT_PASS: password
@@ -197,7 +198,8 @@ jobs:
197198
with:
198199
node-version: ${{ matrix.node }}
199200
- name: Install
200-
run: npm ci
201+
run: npm ci --ignore-scripts
202+
timeout-minutes: 10
201203
- name: Download Build Artifacts
202204
uses: actions/download-artifact@v5
203205
with:
@@ -241,7 +243,8 @@ jobs:
241243
- uses: actions/setup-node@v6
242244
with:
243245
node-version: ${{ matrix.node }}
244-
- run: npm ci
246+
- run: npm ci --ignore-scripts
247+
timeout-minutes: 10
245248
- name: Download Build Artifacts
246249
uses: actions/download-artifact@v5
247250
with:
@@ -286,6 +289,7 @@ jobs:
286289
node-version: 18
287290
- name: Install
288291
run: npm ci --ignore-scripts
292+
timeout-minutes: 10
289293
# Note: Keep this in sync with the node versions from `test-all-versions` job.
290294
- name: Download Test Artifacts (18)
291295
uses: actions/download-artifact@v5
@@ -312,4 +316,3 @@ jobs:
312316
env:
313317
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
314318
PR_BRANCH_NAME: ${{ github.event.pull_request.head.label }}
315-

0 commit comments

Comments
 (0)