Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
* text=auto
/.build export-ignore
/.github export-ignore
/build export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/CODEOWNERS export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/phpstan.php export-ignore
/phpunit.xml export-ignore
/rector.php export-ignore
/renovate.json export-ignore
29 changes: 12 additions & 17 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository:
allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true
allow_auto_merge: true
delete_branch_on_merge: true
allow_update_branch: true
# This will be handled by Renovate
Expand Down Expand Up @@ -89,33 +90,27 @@ rulesets:
strict_required_status_checks_policy: true
do_not_enforce_on_create: false
required_status_checks:
- context: 'cgl'
- context: 'Checks / Perform Composer checks'
integration_id: 15368
- context: 'Tests (PHP 8.2 & locked dependencies)'
- context: 'Checks / Perform repository checks'
integration_id: 15368
- context: 'Tests (PHP 8.2 & highest dependencies)'
- context: 'Tests (PHP 8.2 & highest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.2 & lowest dependencies)'
- context: 'Tests (PHP 8.2 & lowest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.3 & locked dependencies)'
- context: 'Tests (PHP 8.3 & highest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.3 & highest dependencies)'
- context: 'Tests (PHP 8.3 & lowest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.3 & lowest dependencies)'
- context: 'Tests (PHP 8.4 & highest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.4 & locked dependencies)'
- context: 'Tests (PHP 8.4 & lowest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.4 & highest dependencies)'
- context: 'Tests (PHP 8.5 & highest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.4 & lowest dependencies)'
- context: 'Tests (PHP 8.5 & lowest dependencies) / Run tests'
integration_id: 15368
- context: 'Tests (PHP 8.5 & locked dependencies)'
integration_id: 15368
- context: 'Tests (PHP 8.5 & highest dependencies)'
integration_id: 15368
- context: 'Tests (PHP 8.5 & lowest dependencies)'
integration_id: 15368
- context: 'Test coverage'
- context: 'Test coverage / Collect test coverage'
integration_id: 15368
bypass_actors:
- actor_id: 5
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/cgl.yaml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- main

permissions:
contents: read

jobs:
prepare:
name: 'Prepare workflow'
uses: eliashaeussler/gha/.github/workflows/preparation.yaml@e030eb819bbfa1ca7ac404b465ee8129ec9b2ce9 # 0.7.2

checks:
name: 'Checks'

needs: [prepare]
if: ${{ needs.prepare.outputs.continue == 'true' }}

permissions:
contents: read
security-events: write

uses: eliashaeussler/gha/.github/workflows/checks.yaml@e030eb819bbfa1ca7ac404b465ee8129ec9b2ce9 # 0.7.2
with:
# We use the minimum supported PHP version
php-version: 8.2 # renovate-ignore

tests:
name: 'Tests (PHP ${{ matrix.php-version }} & ${{ matrix.dependencies }} dependencies)'

needs: [prepare]
if: ${{ needs.prepare.outputs.continue == 'true' }}

strategy:
fail-fast: false
matrix:
php-version: ["8.2", "8.3", "8.4", "8.5"]
dependencies: ["highest", "lowest"]

uses: eliashaeussler/gha/.github/workflows/composer-tests.yaml@e030eb819bbfa1ca7ac404b465ee8129ec9b2ce9 # 0.7.2
with:
php-version: ${{ matrix.php-version }}
dependencies: ${{ matrix.dependencies }}

test-coverage:
name: 'Test coverage'

needs: [prepare]
if: ${{ needs.prepare.outputs.continue == 'true' }}

uses: eliashaeussler/gha/.github/workflows/composer-test-coverage.yaml@e030eb819bbfa1ca7ac404b465ee8129ec9b2ce9 # 0.7.2
26 changes: 6 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
name: Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
# Job: Create release
release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0

# Check if tag is valid
- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi

# Create release
- name: Create release
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
with:
generateReleaseNotes: true
name: 'Create release'
uses: eliashaeussler/gha/.github/workflows/github-release.yaml@e030eb819bbfa1ca7ac404b465ee8129ec9b2ce9 # 0.7.2
107 changes: 0 additions & 107 deletions .github/workflows/tests.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/.build/
/vendor/
/.php-cs-fixer.cache
/.phpunit.result.cache
Loading