diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 64eab42..89d3458 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,23 +8,22 @@ on: jobs: tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 + timeout-minutes: 10 strategy: fail-fast: true - matrix: - php: ['8.1'] - name: PHP ${{ matrix.php }} + name: PHP 8.1 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} + php-version: 8.1 tools: composer coverage: xdebug @@ -59,4 +58,30 @@ jobs: cp build/coverage/clover.xml build/logs/clover.xml composer global require php-coveralls/php-coveralls php-coveralls --coverage_clover=build/logs/clover.xml -v - if: matrix.php == '8.1' + + tests-last: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + + strategy: + fail-fast: true + + name: PHP 8.2 - Last + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + tools: composer + coverage: xdebug + + - name: Install dependencies + run: + composer update + + - name: PHPUnit + run: vendor/bin/phpunit --verbose diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc7bbe6..fa70f4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,12 +9,14 @@ variables: test:php: stage: test + timeout: 10 minutes cache: paths: - build/ - vendor/ before_script: - - composer install + - php -v + - composer update script: - composer normalize --dry-run --indent-size=4 --indent-style=space - vendor/bin/php-cs-fixer fix --diff --dry-run --verbose @@ -28,8 +30,23 @@ test:php: - build/docs/ coverage: '/^\s*Lines:\s*\d+.\d+\%/' +test:php-last: + image: registry.gitlab.com/aplus-framework/images/base:3 + stage: test + timeout: 10 minutes + cache: + paths: + - vendor/ + before_script: + - php -v + - composer update + script: + - vendor/bin/phpunit --colors=never + coverage: '/^\s*Lines:\s*\d+.\d+\%/' + pages: stage: deploy + timeout: 10 minutes dependencies: - test:php environment: diff --git a/composer.json b/composer.json index 52e9048..26c6e58 100644 --- a/composer.json +++ b/composer.json @@ -32,36 +32,36 @@ "php": ">=8.1", "aplus/autoload": "^2.0.2", "aplus/cache": "^3.0.1", - "aplus/cli": "^2.3.1", - "aplus/config": "^3.0.1", - "aplus/crypto": "^1.0.2", - "aplus/database": "^3.2.1", + "aplus/cli": "^2.4.0", + "aplus/config": "^3.0.2", + "aplus/crypto": "^1.0.3", + "aplus/database": "^3.3.0", "aplus/database-extra": "^3.0.1", "aplus/date": "^2.0.1", - "aplus/debug": "^3.3.4", + "aplus/debug": "^3.4.0", "aplus/dev-commands": "^1.0.0", - "aplus/email": "^3.2.1", + "aplus/email": "^3.2.3", "aplus/events": "^1.4.2", "aplus/factories": "^1.0.1", "aplus/helpers": "^3.0.1", - "aplus/http": "^5.2.1", - "aplus/http-client": "^4.2.1", + "aplus/http": "^5.5.0", + "aplus/http-client": "^4.3.1", "aplus/image": "^2.2.3", "aplus/language": "^3.0.2", "aplus/log": "^3.0.1", - "aplus/mvc": "^3.1.0", - "aplus/pagination": "^3.3.0", + "aplus/mvc": "^3.10.0", + "aplus/pagination": "^3.6.0", "aplus/routing": "^3.4.2", - "aplus/session": "^3.2.1", - "aplus/validation": "^2.1.2" + "aplus/session": "^3.2.3", + "aplus/validation": "^2.5.0" }, "require-dev": { "ext-xdebug": "*", - "aplus/coding-standard": "^1.12", - "ergebnis/composer-normalize": "^2.25", - "phpmd/phpmd": "^2.12", - "phpstan/phpstan": "^1.5", - "phpunit/phpunit": "^9.5" + "aplus/coding-standard": "^1.14", + "ergebnis/composer-normalize": "^2.31", + "phpmd/phpmd": "^2.13", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.6" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/docker-compose.yml b/docker-compose.yml index a23fbdc..f801e8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,3 +7,10 @@ services: volumes: - .:/package tty: true + package-last: + image: registry.gitlab.com/aplus-framework/images/package:3 + container_name: package-framework-last + working_dir: /package + volumes: + - .:/package + tty: true diff --git a/guide/index.rst b/guide/index.rst index 1408dc5..6c298e9 100644 --- a/guide/index.rst +++ b/guide/index.rst @@ -31,8 +31,6 @@ about the current version of the installed framework: .. code-block:: php echo Aplus::VERSION; - echo Aplus::CODENAME; - echo Aplus::DESCRIPTION; With this package it is possible to create applications according to the need of the developer. diff --git a/src/Aplus.php b/src/Aplus.php index 0b3a916..1b4d964 100644 --- a/src/Aplus.php +++ b/src/Aplus.php @@ -19,5 +19,5 @@ final class Aplus * * @var string */ - public const VERSION = '23.0.0'; + public const VERSION = '23.0.1'; }