Skip to content

Commit

Permalink
Add opentsdb to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 1, 2024
1 parent 8cbf9aa commit 623bb04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

services:
opentsdb:
image: petergrace/opentsdb-docker:latest
env:
WAITSECS: 30 # Give time for hbase to shut down, otherwise data corruption may result
ports:
- 4242:4242
- 60030:60030

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -28,5 +37,7 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

- run:

- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
container_name: php-opentsdb-client-lib-opentsdb
image: petergrace/opentsdb-docker:latest
environment:
- WAITSECS=30 # Give time for hbase to shutdown, otherwise data corruption may result
- WAITSECS=30 # Give time for hbase to shut down, otherwise data corruption may result
ports:
- 4242:4242
- 60030:60030
Expand Down

0 comments on commit 623bb04

Please sign in to comment.