workflows gitea
CI / testsuite (mysql, 8.5, ) (push) Successful in 2m52s
CI / testsuite (mysql, 8.2, ) (push) Successful in 4m14s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m25s
CI / testsuite (pgsql, 8.5, ) (push) Successful in 3m14s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m13s
CI / testsuite (sqlite, 8.5, ) (push) Successful in 2m51s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Failing after 4m24s
CI / Coding Standard & Static Analysis (push) Successful in 2m51s
CI / testsuite (mysql, 8.5, ) (push) Successful in 2m52s
CI / testsuite (mysql, 8.2, ) (push) Successful in 4m14s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 5m25s
CI / testsuite (pgsql, 8.5, ) (push) Successful in 3m14s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 4m13s
CI / testsuite (sqlite, 8.5, ) (push) Successful in 2m51s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Failing after 4m24s
CI / Coding Standard & Static Analysis (push) Successful in 2m51s
This commit is contained in:
+19
-29
@@ -11,9 +11,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['8.2', '8.4']
|
php-version: ['8.2', '8.5']
|
||||||
db-type: ['mysql']
|
# db-type: ['mysql']
|
||||||
# db-type: ['sqlite', 'mysql', 'pgsql']
|
db-type: ['sqlite', 'mysql', 'pgsql']
|
||||||
prefer-lowest: ['']
|
prefer-lowest: ['']
|
||||||
include:
|
include:
|
||||||
- php-version: '8.2'
|
- php-version: '8.2'
|
||||||
@@ -26,20 +26,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||||
MYSQL_DATABASE: cakephp
|
MYSQL_DATABASE: cakephp
|
||||||
# services:
|
# services:
|
||||||
# postgres:
|
# postgres:
|
||||||
# image: postgres
|
# image: postgres
|
||||||
# ports:
|
# ports:
|
||||||
# - 5432:5432
|
# - 5432:5432
|
||||||
# env:
|
# env:
|
||||||
# POSTGRES_PASSWORD: postgres
|
# POSTGRES_PASSWORD: postgres
|
||||||
# mysql8:
|
|
||||||
# image: mysql:8.0
|
|
||||||
# env:
|
|
||||||
# MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
||||||
# MYSQL_DATABASE: test_db
|
|
||||||
# ports:
|
|
||||||
# - 3306:3306
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -47,7 +40,7 @@ jobs:
|
|||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-version }}
|
php-version: ${{ matrix.php-version }}
|
||||||
extensions: mbstring, intl, sqlite, pdo_${{ matrix.db-type }}
|
extensions: mbstring, intl, bcmath, sqlite, pdo_${{ matrix.db-type }}
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@@ -94,11 +87,11 @@ jobs:
|
|||||||
if: matrix.prefer-lowest == 'prefer-lowest'
|
if: matrix.prefer-lowest == 'prefer-lowest'
|
||||||
run: vendor/bin/validate-prefer-lowest -m
|
run: vendor/bin/validate-prefer-lowest -m
|
||||||
|
|
||||||
# - name: Upload coverage reports to Codecov
|
# - name: Upload coverage reports to Codecov
|
||||||
# if: success() && matrix.php-version == '8.2'
|
# if: success() && matrix.php-version == '8.2'
|
||||||
# uses: codecov/codecov-action@v4
|
# uses: codecov/codecov-action@v4
|
||||||
# with:
|
# with:
|
||||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
validation:
|
validation:
|
||||||
name: Coding Standard & Static Analysis
|
name: Coding Standard & Static Analysis
|
||||||
@@ -108,8 +101,8 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.1'
|
php-version: '8.2'
|
||||||
extensions: mbstring, intl, sqlite
|
extensions: mbstring, intl, sqlite, bcmath
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@@ -133,11 +126,8 @@ jobs:
|
|||||||
composer install --no-progress --prefer-dist --optimize-autoloader
|
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Composer phpstan setup
|
|
||||||
run: composer stan-setup
|
|
||||||
|
|
||||||
- name: Run phpstan
|
- name: Run phpstan
|
||||||
run: vendor/bin/phpstan analyse --error-format=github
|
run: vendor/bin/phpstan analyse src --error-format=github
|
||||||
|
|
||||||
- name: Run phpcs
|
- name: Run phpcs
|
||||||
run: composer cs-check
|
run: composer cs-check
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: CI Build Status
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- CI
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
jobs:
|
||||||
|
on-success:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
steps:
|
||||||
|
- name: Webhook
|
||||||
|
uses: zzzze/webhook-trigger@master
|
||||||
|
with:
|
||||||
|
data: "{\"text\":\"${{ gitea.repository }} build succeeded 🎉\"}"
|
||||||
|
webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }}
|
||||||
|
options: "-H \"Content-Type: application/json\""
|
||||||
|
|
||||||
|
on-failure:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
steps:
|
||||||
|
- name: Webhook
|
||||||
|
uses: zzzze/webhook-trigger@master
|
||||||
|
with:
|
||||||
|
data: "{\"text\":\"${{ gitea.repository }} build failed 🔎\"}"
|
||||||
|
webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }}
|
||||||
|
options: "-H \"Content-Type: application/json\""
|
||||||
Reference in New Issue
Block a user