Skip to content

Commit 79efe7e

Browse files
committed
Add opentsdb to CI
1 parent 8cbf9aa commit 79efe7e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Diff for: .github/workflows/tests.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ${{ matrix.os }}
8+
9+
services:
10+
opentsdb:
11+
image: petergrace/opentsdb-docker:latest
12+
ports:
13+
- 4242:4242
14+
- 60030:60030
15+
816
strategy:
917
fail-fast: false
1018
matrix:
11-
os: [ubuntu-latest, windows-latest]
19+
os: [ubuntu-latest]
1220
php: [8.3, 8.2, 8.1, 8.0]
1321
dependency-version: [prefer-lowest, prefer-stable]
1422

@@ -28,5 +36,9 @@ jobs:
2836
- name: Install dependencies
2937
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3038

39+
- name: Check if OpenTSDB service is running
40+
run: |
41+
docker ps | grep opentsdb
42+
3143
- name: Execute tests
32-
run: vendor/bin/phpunit
44+
run: vendor/bin/phpunit

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ services:
5555
container_name: php-opentsdb-client-lib-opentsdb
5656
image: petergrace/opentsdb-docker:latest
5757
environment:
58-
- WAITSECS=30 # Give time for hbase to shutdown, otherwise data corruption may result
58+
- WAITSECS=30 # Give time for hbase to shut down, otherwise data corruption may result
5959
ports:
6060
- 4242:4242
6161
- 60030:60030

0 commit comments

Comments
 (0)