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:
@@ -11,9 +11,9 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php-version: ['8.2', '8.4']
|
||||
db-type: ['mysql']
|
||||
# db-type: ['sqlite', 'mysql', 'pgsql']
|
||||
php-version: ['8.2', '8.5']
|
||||
# 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
|
||||
@@ -47,7 +40,7 @@ jobs:
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
extensions: mbstring, intl, sqlite, pdo_${{ matrix.db-type }}
|
||||
extensions: mbstring, intl, bcmath, sqlite, pdo_${{ matrix.db-type }}
|
||||
coverage: pcov
|
||||
|
||||
- name: Get composer cache directory
|
||||
@@ -108,8 +101,8 @@ jobs:
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.1'
|
||||
extensions: mbstring, intl, sqlite
|
||||
php-version: '8.2'
|
||||
extensions: mbstring, intl, sqlite, bcmath
|
||||
coverage: none
|
||||
|
||||
- name: Get composer cache directory
|
||||
@@ -133,11 +126,8 @@ 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
|
||||
run: vendor/bin/phpstan analyse src --error-format=github
|
||||
|
||||
- name: Run phpcs
|
||||
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