diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 427bbde..91809c3 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,11 +9,11 @@ jobs: testsuite: runs-on: ubuntu-latest strategy: - fail-fast: false + fail-fast: true matrix: php-version: ['8.2', '8.4'] - db-type: ['mysql'] - # db-type: ['sqlite', 'mysql', 'pgsql'] +# db-type: ['mysql'] + db-type: ['sqlite', 'mysql', 'pgsql'] prefer-lowest: [''] include: - php-version: '8.2' @@ -33,13 +33,6 @@ jobs: # - 5432:5432 # env: # POSTGRES_PASSWORD: postgres -# mysql8: -# image: mysql:8.0 -# env: -# MYSQL_ALLOW_EMPTY_PASSWORD: yes -# MYSQL_DATABASE: test_db -# ports: -# - 3306:3306 steps: - uses: actions/checkout@v4 @@ -133,11 +126,10 @@ jobs: composer install --no-progress --prefer-dist --optimize-autoloader fi - - name: Composer phpstan setup - run: composer stan-setup - - name: Run phpstan run: vendor/bin/phpstan analyse --error-format=github - name: Run phpcs - run: composer cs-check \ No newline at end of file + run: composer cs-check + + diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..993a4c8 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,17 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + - uses: actions/checkout@v4 + - name: Release + uses: softprops/action-gh-release@v2 + + diff --git a/composer.json b/composer.json index effff34..f03a0aa 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,8 @@ "require-dev": { "phpunit/phpunit": "^10.1", "php-collective/decimal-object": "^1.3", - "cakephp/migrations": "^4.0.0" + "cakephp/migrations": "^4.0.0", + "phpstan/phpstan": "^2.1" }, "suggest": { "dereuromark/cakephp-geo": "^3.2"