Skip to content

Commit

Permalink
Merge branch 'new' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jan 15, 2024
2 parents 19ba012 + d4c0002 commit 0358afa
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
vendor/bin/phpstan analyse -vvv

- name: PHPUnit
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit

- name: Upload coverage results to Coveralls
env:
Expand All @@ -59,14 +59,14 @@ jobs:
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
tests-last:
tests-latest:
runs-on: ubuntu-22.04
timeout-minutes: 10

strategy:
fail-fast: true

name: PHP 8.2 - Last
name: PHP Latest

steps:
- name: Checkout
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: latest
tools: composer
coverage: xdebug

Expand All @@ -84,4 +84,4 @@ jobs:
composer update

- name: PHPUnit
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build/
raw-tests/
vendor/
.php-cs-fixer.cache
.phpunit.cache
.phpunit.result.cache
composer.lock
composer.phar
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ test:php:
- build/docs/
coverage: '/^\s*Lines:\s*\d+.\d+\%/'

test:php-last:
image: registry.gitlab.com/aplus-framework/images/base:3
test:php-latest:
image: registry.gitlab.com/aplus-framework/images/base:latest
stage: test
timeout: 10 minutes
cache:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"jetbrains/phpstorm-attributes": "^1.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.5"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ services:
volumes:
- .:/package
tty: true
package-last:
image: registry.gitlab.com/aplus-framework/images/package:3
container_name: package-validation-last
package-latest:
image: registry.gitlab.com/aplus-framework/images/package:latest
container_name: package-validation-latest
working_dir: /package
volumes:
- .:/package
Expand Down
18 changes: 10 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true"
convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false"
stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
bootstrap="vendor/autoload.php" colors="true" stopOnError="false" stopOnFailure="false"
stopOnIncomplete="false" stopOnSkipped="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache">
<coverage>
<report>
<clover outputFile="build/coverage/clover.xml"/>
<html outputDirectory="build/coverage"/>
Expand All @@ -18,4 +15,9 @@
<directory suffix="Test.php">tests</directory>
</testsuite>
<logging/>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>

0 comments on commit 0358afa

Please sign in to comment.