Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Tests"

on:
pull_request:
push:
branches:
- main

jobs:
tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run tests
run: PHP_VERSION=${{ matrix.php }} docker compose run --rm tests composer test
26 changes: 18 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"Utopia\\Telemetry\\": "src/Telemetry"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Telemetry\\": "tests/Telemetry"
}
},
"scripts": {
"lint": "vendor/bin/pint --test",
"format": "vendor/bin/pint",
Expand All @@ -24,16 +29,21 @@
"ext-protobuf": "*",
"ext-opentelemetry": "*",
"php": ">=8.0",
"open-telemetry/sdk": "^1.1",
"symfony/http-client": "^7.1",
"nyholm/psr7": "^1.8",
"open-telemetry/exporter-otlp": "^1.1"
"nyholm/psr7": "1.*",
"open-telemetry/exporter-otlp": "1.*",
"open-telemetry/sdk": "1.*",
"symfony/http-client": "7.*"
Comment thread
lohanidamodar marked this conversation as resolved.
},
"require-dev": {
"phpunit/phpunit": "^9.5.25",
"laravel/pint": "^1.2",
"phpstan/phpstan": "^1.10",
"phpbench/phpbench": "^1.2"
"phpunit/phpunit": "11.*",
"laravel/pint": "1.*",
"phpstan/phpstan": "2.*",
"phpbench/phpbench": "1.*",
"swoole/ide-helper": "6.*"
},
"suggest": {
"ext-swoole": "Required for the Swoole transport implementation",
"ext-sockets": "Required for the Swoole transport implementation"
},
"config": {
"allow-plugins": {
Expand Down
Loading
Loading