Skip to content

Commit

Permalink
Add LogtailClient curl connection timeout and timeout (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: vojtechzikmund <[email protected]>
Co-authored-by: Petr Heinz <[email protected]>
  • Loading branch information
3 people authored Mar 20, 2024
1 parent a425d7d commit ad28932
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 1,960 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,48 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
lowest-monolog:
- true
- false
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
- name: Setup PHP with CURL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl

- name: Validate composer.json
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.lowest-monolog }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Downgrade monolog to lowest supported version
if: ${{ matrix.lowest-monolog }}
run: composer update monolog/monolog --prefer-lowest --with-dependencies

- name: Run test suite
run: composer run-script test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/vendor/
/example-project/vendor/
/composer.lock
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"require": {
"php": "^7.3 || ^8",
"ext-curl": "*",
"monolog/monolog": "^2"
},
"require-dev": {
Expand Down
Loading

0 comments on commit ad28932

Please sign in to comment.