Skip to content

Commit

Permalink
setup github actions + < php 8.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
marcing committed Apr 19, 2024
1 parent e2b300b commit df556ba
Show file tree
Hide file tree
Showing 6 changed files with 1,872 additions and 19 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,17 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install composer and dependencies
uses: php-actions/composer@v6

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
configuration: phpunit.xml.dist
php_extensions: xdebug
args: --coverage-clover ./coverage.xml
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none
#ini-values: display_errors=off, log_errors=on
extensions: :xdebug, curl, fileinfo, gd, gettext, gmp, intl, imap, ldap, mbstring, exif, mysqli, openssl, pdo_mysql, soap, sockets, sodium, sqlite3, pdo_sqlite, redis, yaml, apcu, opcache

- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
verbose: true
- name: Install composer and dependencies
run: composer install --classmap-authoritative

- name: Run tests
run: ./vendor/bin/phpunit tests
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build
composer.lock
vendor
.idea
.phpunit.*
phpunit.*
phpunit.xml
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": ">8.2",
"php": ">8.1",
"ovos/php-library": "dev-release/3.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit df556ba

Please sign in to comment.