Skip to content

Commit

Permalink
Update 3.x with changes in 2.x (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Šimon Let <[email protected]>
Co-authored-by: Vojtěch Zikmund <[email protected]>
Co-authored-by: vojtechzikmund <[email protected]>
  • Loading branch information
4 people authored Mar 20, 2024
1 parent d8bb2d9 commit b953318
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 1,596 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,45 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- "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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Experience SQL-compatible structured log management based on ClickHouse. [Learn
## Need help?
Please let us know at [[email protected]](mailto:[email protected]). We're happy to help!

**Using older Monolog?** Install Logtail for Monolog 2:

```bash
composer require logtail/monolog-logtail:^2.0.0
```
---

[ISC license](https://github.com/logtail/monolog-logtail/blob/master/LICENSE.md), [example project](https://github.com/logtail/monolog-logtail/tree/master/example-project)
Loading

0 comments on commit b953318

Please sign in to comment.