Skip to content

Commit

Permalink
Merge pull request #4 from ajgarlag/dbal4
Browse files Browse the repository at this point in the history
Support DBAL4
  • Loading branch information
ajgarlag authored Apr 3, 2024
2 parents cb29c13 + 2f39686 commit cf26092
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 53 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on:
push:
branches: ['main']
pull_request:
branches: ['*']
schedule:
- cron: '0 0 * * *'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
prefer: ['']
include:
- php: '8.1'
prefer: '--prefer-lowest'
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-
- name: Install dependencies
run: composer update --no-interaction --no-progress ${{ matrix.prefer }}
- name: PHPUnit
run: vendor/bin/phpunit
51 changes: 0 additions & 51 deletions .github/workflows/test.yml

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Added

- Add DBAL 4 support

### Removed

- Drop PHP <8.1 support
- Drop DBAL <3 support

## [0.4.0] - 2022-06-09

### Added
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
}
],
"require": {
"php": ">=7.4",
"doctrine/dbal": "^2.13 | ^3.3"
"php": "^8.1",
"doctrine/dbal": "^3.3 || ^4"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
Expand All @@ -36,6 +36,7 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-main": "0.4.x-dev"
Expand Down

0 comments on commit cf26092

Please sign in to comment.