Skip to content

Add LogtailClient curl connection timeout and timeout #92

Add LogtailClient curl connection timeout and timeout

Add LogtailClient curl connection timeout and timeout #92

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
example_matrix:

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 15, Col: 5): Unexpected value 'example_matrix'
strategy:
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
lowest-monolog:
- true
- false
steps:
- uses: actions/checkout@v2
- 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-${{ 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