Move workflows to .gitea/workflows
dependabot-auto-merge / dependabot (pull_request_target) Skipped
CI / PHPStan (push) Successful in 45s
CI / Pest (PHP 8.3, Laravel 12.*, prefer-lowest) (push) Successful in 41s
CI / Pest (PHP 8.3, Laravel 12.*, prefer-stable) (push) Successful in 38s
CI / Pest (PHP 8.4, Laravel 12.*, prefer-lowest) (push) Successful in 41s
CI / Pest (PHP 8.4, Laravel 12.*, prefer-stable) (push) Successful in 45s
CI / Pest (PHP 8.5, Laravel 12.*, prefer-lowest) (push) Successful in 45s
CI / Pest (PHP 8.5, Laravel 12.*, prefer-stable) (push) Successful in 43s
CI / Pest (PHP 8.3, Laravel 13.*, prefer-lowest) (push) Successful in 44s
CI / Pest (PHP 8.3, Laravel 13.*, prefer-stable) (push) Successful in 42s
CI / Pest (PHP 8.4, Laravel 13.*, prefer-lowest) (push) Successful in 43s
CI / Pest (PHP 8.4, Laravel 13.*, prefer-stable) (push) Successful in 41s
CI / Pest (PHP 8.5, Laravel 13.*, prefer-lowest) (push) Successful in 46s
CI / Pest (PHP 8.5, Laravel 13.*, prefer-stable) (push) Successful in 44s
dependabot-auto-merge / dependabot (pull_request_target) Skipped
CI / PHPStan (push) Successful in 45s
CI / Pest (PHP 8.3, Laravel 12.*, prefer-lowest) (push) Successful in 41s
CI / Pest (PHP 8.3, Laravel 12.*, prefer-stable) (push) Successful in 38s
CI / Pest (PHP 8.4, Laravel 12.*, prefer-lowest) (push) Successful in 41s
CI / Pest (PHP 8.4, Laravel 12.*, prefer-stable) (push) Successful in 45s
CI / Pest (PHP 8.5, Laravel 12.*, prefer-lowest) (push) Successful in 45s
CI / Pest (PHP 8.5, Laravel 12.*, prefer-stable) (push) Successful in 43s
CI / Pest (PHP 8.3, Laravel 13.*, prefer-lowest) (push) Successful in 44s
CI / Pest (PHP 8.3, Laravel 13.*, prefer-stable) (push) Successful in 42s
CI / Pest (PHP 8.4, Laravel 13.*, prefer-lowest) (push) Successful in 43s
CI / Pest (PHP 8.4, Laravel 13.*, prefer-stable) (push) Successful in 41s
CI / Pest (PHP 8.5, Laravel 13.*, prefer-lowest) (push) Successful in 46s
CI / Pest (PHP 8.5, Laravel 13.*, prefer-stable) (push) Successful in 44s
This commit is contained in:
4 files changed
+1
-1
No files matched your search
@@ -0,0 +1,88 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.php'
|
||||
- '.gitea/workflows/ci.yml'
|
||||
- 'phpunit.xml.dist'
|
||||
- 'phpstan.neon.dist'
|
||||
- 'phpstan-baseline.neon'
|
||||
- 'composer.json'
|
||||
- 'composer.lock'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
phpstan:
|
||||
name: PHPStan
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.5'
|
||||
coverage: none
|
||||
|
||||
- name: Install composer dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-progress
|
||||
|
||||
- name: Run PHPStan
|
||||
run: vendor/bin/phpstan --error-format=github
|
||||
|
||||
pest:
|
||||
name: Pest (PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, ${{ matrix.stability }})
|
||||
needs: phpstan
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
php: ['8.3', '8.4', '8.5']
|
||||
laravel: ['12.*', '13.*']
|
||||
stability: [prefer-lowest, prefer-stable]
|
||||
include:
|
||||
- laravel: '12.*'
|
||||
testbench: '10.*'
|
||||
- laravel: '13.*'
|
||||
testbench: '11.*'
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
|
||||
coverage: none
|
||||
|
||||
- name: Setup problem matchers
|
||||
run: |
|
||||
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer require \
|
||||
"laravel/framework:${{ matrix.laravel }}" \
|
||||
"orchestra/testbench:${{ matrix.testbench }}" \
|
||||
"nesbot/carbon:^3.8.4" \
|
||||
--dev --no-interaction --no-update
|
||||
|
||||
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
|
||||
|
||||
- name: List installed dependencies
|
||||
run: composer show -D
|
||||
|
||||
- name: Execute tests
|
||||
run: vendor/bin/pest --ci
|
||||
@@ -0,0 +1,33 @@
|
||||
name: dependabot-auto-merge
|
||||
on: pull_request_target
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
dependabot:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
|
||||
- name: Dependabot metadata
|
||||
id: metadata
|
||||
uses: dependabot/fetch-metadata@v2.5.0
|
||||
with:
|
||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
- name: Auto-merge Dependabot PRs for semver-minor updates
|
||||
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
|
||||
run: gh pr merge --auto --merge "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Auto-merge Dependabot PRs for semver-patch updates
|
||||
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
|
||||
run: gh pr merge --auto --merge "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
@@ -0,0 +1,28 @@
|
||||
name: Fix PHP code style issues
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.php'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
php-code-styling:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Fix PHP code style issues
|
||||
uses: aglipanci/laravel-pint-action@2.6
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Fix styling
|
||||
@@ -0,0 +1,32 @@
|
||||
name: "Update Changelog"
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
|
||||
- name: Update Changelog
|
||||
uses: stefanzweifel/changelog-updater-action@v1
|
||||
with:
|
||||
latest-version: ${{ github.event.release.name }}
|
||||
release-notes: ${{ github.event.release.body }}
|
||||
|
||||
- name: Commit updated CHANGELOG
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
branch: main
|
||||
commit_message: Update CHANGELOG
|
||||
file_pattern: CHANGELOG.md
|
||||
Reference in new issue
Block a user