Phase 0: Fundament für Inhaus
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7197eaebf2
commit
9c0f8de791
15771 changed files with 1564103 additions and 5 deletions
44
vendor/spomky-labs/cbor-php/.github/CONTRIBUTING.md
vendored
Normal file
44
vendor/spomky-labs/cbor-php/.github/CONTRIBUTING.md
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Contributing
|
||||
|
||||
First of all, **thank you** for contributing.
|
||||
|
||||
Bugs or feature requests can be posted online on the GitHub issues section of the project.
|
||||
|
||||
Few rules to ease code reviews and merges:
|
||||
|
||||
- You MUST follow the [PSR-12](http://www.php-fig.org/psr/psr-12/) coding standards.
|
||||
- You MUST run the test suite.
|
||||
- You MUST write (or update) unit tests when bugs are fixed or features are added.
|
||||
- You SHOULD write documentation.
|
||||
|
||||
We use [Git-Flow](http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/) to automate our git branching
|
||||
workflow.
|
||||
|
||||
To contribute use [Pull Requests](https://help.github.com/articles/using-pull-requests), please, write commit messages
|
||||
that make sense, and rebase your branch before submitting your PR.
|
||||
|
||||
May be asked to squash your commits too. This is used to "clean" your Pull Request before merging it, avoiding commits
|
||||
such as fix tests, fix 2, fix 3, etc.
|
||||
|
||||
Run test suite
|
||||
------------
|
||||
|
||||
* install Composer by following the [official installation instructions](https://getcomposer.org/download/), which
|
||||
verify the installer signature before running it. Never pipe the installer straight into `php`.
|
||||
* install dependencies: `composer install`
|
||||
* run tests: `vendor/bin/phpunit --configuration .ci-tools/phpunit.xml.dist`
|
||||
|
||||
Run the full CI suite locally
|
||||
------------
|
||||
|
||||
The quality checks that gate a Pull Request all run through [Castor](https://castor.jolicode.com/), inside the same
|
||||
`ghcr.io/spomky-labs/phpqa` image the CI uses, so the tool versions match:
|
||||
|
||||
```sh
|
||||
castor ecs # coding standards (castor ecs_fix to apply)
|
||||
castor rector # automated refactoring, dry-run (castor rector_fix to apply)
|
||||
castor phpstan # static analysis
|
||||
castor deptrac # architecture layers
|
||||
castor lint # syntax check
|
||||
castor phpunit # tests, with coverage
|
||||
```
|
||||
2
vendor/spomky-labs/cbor-php/.github/FUNDING.yml
vendored
Normal file
2
vendor/spomky-labs/cbor-php/.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
github: Spomky
|
||||
patreon: FlorentMorselli
|
||||
42
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/1_Bug_report.yaml
vendored
Normal file
42
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/1_Bug_report.yaml
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: 🐛 Bug Report
|
||||
description: ⚠️ NEVER report security issues, email security AT spomky-labs.com instead
|
||||
labels: Bug
|
||||
body:
|
||||
- type: input
|
||||
id: affected-versions
|
||||
attributes:
|
||||
label: Version(s) affected
|
||||
placeholder: x.y.z
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the problem
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: how-to-reproduce
|
||||
attributes:
|
||||
label: How to reproduce
|
||||
description: |
|
||||
⚠️ This is the most important part of the report ⚠️
|
||||
Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix.
|
||||
Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily.
|
||||
Most of the time, creating a "bug reproducer" is the best way to help us and increases the chances someone
|
||||
will have a look at it.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: possible-solution
|
||||
attributes:
|
||||
label: Possible Solution
|
||||
description: |
|
||||
Optional: only if you have suggestions on a fix/reason for the bug
|
||||
Don't hesitate to create a pull request with your solution, it helps get faster feedback.
|
||||
- type: textarea
|
||||
id: additional-context
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: "Optional: any other context about the problem: log messages, screenshots, etc."
|
||||
17
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/2_Feature_request.yaml
vendored
Normal file
17
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/2_Feature_request.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: 🚀 Feature Request
|
||||
description: RFC and ideas for new features and improvements
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the new feature
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: example
|
||||
attributes:
|
||||
label: Example
|
||||
description: |
|
||||
A simple example of the new feature in action (include PHP code, YAML config, etc.)
|
||||
If the new feature changes an existing feature, include a simple before/after comparison.
|
||||
10
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/3_Documentation.yaml
vendored
Normal file
10
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/3_Documentation.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
name: 📖 Documentation Issue
|
||||
description: To report typo or obsolete section in the documentation
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the error you found in the documentation
|
||||
validations:
|
||||
required: true
|
||||
8
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
8
vendor/spomky-labs/cbor-php/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Support Question
|
||||
url: https://spomky-labs.com/contact/
|
||||
about: |
|
||||
We use GitHub issues only to discuss about bugs and new features.
|
||||
For this kind of questions about using the framework or third-party bundles,
|
||||
please email us contact AT spomky-labs.com for quoting
|
||||
17
vendor/spomky-labs/cbor-php/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
17
vendor/spomky-labs/cbor-php/.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Target branch:
|
||||
Resolves issue # <!-- #-prefixed issue number(s), if any -->
|
||||
|
||||
<!-- replace space with "x" in square brackets: [x] -->
|
||||
- [ ] It is a Bug fix
|
||||
- [ ] It is a New feature
|
||||
- [ ] Breaks BC
|
||||
- [ ] Includes Deprecations
|
||||
|
||||
<!--
|
||||
Fill in this template according to the PR you're about to submit.
|
||||
Replace this comment by a description of what your PR is solving.
|
||||
|
||||
Please consider the following requirement:
|
||||
* Modification of existing tests should be avoided unless deemed necessary.
|
||||
* You MUST never open a PR related to a security issue. Contact Spomky in private at https://gitter.im/Spomky/
|
||||
-->
|
||||
37
vendor/spomky-labs/cbor-php/.github/actions/automatic-releases/action.yml
vendored
Normal file
37
vendor/spomky-labs/cbor-php/.github/actions/automatic-releases/action.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Vendored copy of https://github.com/laminas/automatic-releases/blob/1.26.2/action.yml
|
||||
#
|
||||
# The upstream action pins its own Docker image to the FLOATING major tag
|
||||
# `ghcr.io/laminas/automatic-releases:1`. That tag is not a semver version: it
|
||||
# moves with every 1.x release, and GHCR publishes no `:1.26.2` manifest to
|
||||
# pin instead. So `uses: laminas/automatic-releases@1.26.2` says nothing about
|
||||
# what actually executes — whatever was last pushed to `:1` runs, with this
|
||||
# workflow's token and the release signing key in its environment.
|
||||
#
|
||||
# Vendoring the definition is the only way to name a fixed image. To refresh
|
||||
# it after reviewing an upstream release:
|
||||
#
|
||||
# docker buildx imagetools inspect ghcr.io/laminas/automatic-releases:1 \
|
||||
# --format '{{ .Manifest.Digest }}'
|
||||
#
|
||||
# and update both the digest below and the version recorded in the comment.
|
||||
|
||||
name: 'laminas/automatic-releases (digest-pinned)'
|
||||
description: 'Automates automatic releases for semver-compliant repositories'
|
||||
|
||||
inputs:
|
||||
command-name:
|
||||
description: |
|
||||
Command to execute: one of
|
||||
* `laminas:automatic-releases:release`
|
||||
* `laminas:automatic-releases:create-merge-up-pull-request`
|
||||
* `laminas:automatic-releases:switch-default-branch-to-next-minor`
|
||||
* `laminas:automatic-releases:bump-changelog`
|
||||
* `laminas:automatic-releases:create-milestones`
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
# Digest of ghcr.io/laminas/automatic-releases:1 as of 2026-09-10.
|
||||
image: 'docker://ghcr.io/laminas/automatic-releases@sha256:c86f165782c462d031f7f8a5932cad237c4a7d16a57b1b0ab0e76e68e08ffba1'
|
||||
args:
|
||||
- ${{ inputs.command-name }}
|
||||
19
vendor/spomky-labs/cbor-php/.github/dependabot.yml
vendored
Normal file
19
vendor/spomky-labs/cbor-php/.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "composer"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "friday"
|
||||
versioning-strategy: "widen"
|
||||
open-pull-requests-limit: 20
|
||||
allow:
|
||||
- dependency-type: all
|
||||
labels: [ "dependencies" ]
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
open-pull-requests-limit: 20
|
||||
labels: [ "dependencies" ]
|
||||
8
vendor/spomky-labs/cbor-php/.github/stale.yml
vendored
Normal file
8
vendor/spomky-labs/cbor-php/.github/stale.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
daysUntilStale: 30
|
||||
daysUntilClose: 7
|
||||
staleLabel: wontfix
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
closeComment: false
|
||||
266
vendor/spomky-labs/cbor-php/.github/workflows/ci.yml
vendored
Normal file
266
vendor/spomky-labs/cbor-php/.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,266 @@
|
|||
name: 📁 PHP CI & Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*.*.x'
|
||||
tags: ['*']
|
||||
pull_request: ~
|
||||
workflow_dispatch: ~
|
||||
|
||||
# Every job below only ever reads the repository. Third-party actions and the
|
||||
# `phpqa` container therefore never receive a token able to write to contents,
|
||||
# packages, issues or pull requests.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
pre_checks:
|
||||
name: "0️⃣ Pre-checks"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: "Check file permissions"
|
||||
run: |
|
||||
NON_EXECUTABLE=$(find . -type f -not -path './.git/*' -not -path './bin/console' -not -path './frankenphp/docker-entrypoint.sh' -not -path './link' -executable)
|
||||
if [[ -n "$NON_EXECUTABLE" ]]; then
|
||||
echo "Found non-executable files with executable permission:"
|
||||
echo "$NON_EXECUTABLE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: "Find non-printable ASCII characters"
|
||||
run: |
|
||||
if LC_ALL=C.UTF-8 find . -type f -name "*.php" -print0 | xargs -0 grep -PHn "[[:cntrl:]]"; then
|
||||
echo "Non-printable ASCII characters found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
prepare_dependencies:
|
||||
name: "📦 Prepare Composer Dependencies"
|
||||
needs: [pre_checks]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
outputs:
|
||||
cache-key: ${{ steps.cache-key-generator.outputs.key }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
|
||||
# `composer.lock` is gitignored (this is a library), so hashing it would
|
||||
# always yield the empty hash and freeze the cache key forever. The
|
||||
# manifest is the only committed input to dependency resolution.
|
||||
- id: cache-key-generator
|
||||
run: echo "key=composer-${{ runner.os }}-${{ hashFiles('composer.json') }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ steps.cache-key-generator.outputs.key }}
|
||||
restore-keys: |
|
||||
composer-${{ runner.os }}-
|
||||
|
||||
- uses: ramsey/composer-install@4.0.0
|
||||
with:
|
||||
dependency-versions: highest
|
||||
composer-options: --optimize-autoloader
|
||||
|
||||
phpstan:
|
||||
name: "1️⃣ Static Analysis (PHPStan)"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
- run: castor phpstan
|
||||
|
||||
ecs:
|
||||
name: "2️⃣ Coding Standards (ECS)"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
- run: castor ecs
|
||||
|
||||
rector:
|
||||
name: "3️⃣ Refactoring (Rector)"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
- run: castor rector
|
||||
|
||||
validate:
|
||||
name: "4️⃣ Validate composer.json"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
- run: |
|
||||
composer dump-autoload --optimize --strict-psr
|
||||
composer validate --strict
|
||||
composer normalize --dry-run --diff || true
|
||||
|
||||
lint:
|
||||
name: "5️⃣ Syntax Check"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- run: composer exec -- parallel-lint src tests
|
||||
|
||||
check_licenses:
|
||||
name: "6️⃣ License Check"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
# `composer licenses` reads the lock file, which is gitignored and not
|
||||
# part of the cache. Without this install the command reports zero
|
||||
# packages and the job passes without checking anything.
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --no-progress
|
||||
- run: castor check-licenses
|
||||
|
||||
deptrac:
|
||||
name: "7️⃣ Architecture Layer Check (Deptrac)"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- uses: actions/cache@v6.1.0
|
||||
with:
|
||||
path: |
|
||||
vendor
|
||||
~/.composer/cache
|
||||
key: ${{ needs.prepare_dependencies.outputs.cache-key }}
|
||||
- run: castor deptrac
|
||||
|
||||
tests:
|
||||
name: "🧪 Unit & Functional Tests (PHP ${{ matrix.php-version }}${{ matrix.lowest-deps && ' - Lowest Deps' || '' }})"
|
||||
needs:
|
||||
- prepare_dependencies
|
||||
- phpstan
|
||||
- ecs
|
||||
- rector
|
||||
- lint
|
||||
- validate
|
||||
- check_licenses
|
||||
- deptrac
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: ${{ matrix.experimental || false }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- php-version: '8.2'
|
||||
lowest-deps: true
|
||||
- php-version: '8.2'
|
||||
- php-version: '8.3'
|
||||
- php-version: '8.4'
|
||||
- php-version: '8.5'
|
||||
experimental: true
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:${{ matrix.php-version }}
|
||||
env:
|
||||
XDEBUG_MODE: 'off'
|
||||
PHP_VERSION: ${{ matrix.php-version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ "${{ matrix.lowest-deps || 'false' }}" = "true" ]; then
|
||||
composer update --prefer-lowest --no-interaction --no-progress
|
||||
else
|
||||
composer install --no-interaction --no-progress
|
||||
fi
|
||||
|
||||
# PHPUnit is invoked directly rather than through `castor phpunit`: castor itself requires PHP >= 8.4 and
|
||||
# this job also runs on the older versions of the matrix. Coverage is produced by the mutation testing job.
|
||||
- name: Run PHPUnit
|
||||
run: composer exec -- phpunit-11 --configuration .ci-tools/phpunit.xml.dist
|
||||
|
||||
infection:
|
||||
name: "🧬 Mutation Testing"
|
||||
needs: [tests]
|
||||
if: ${{ endsWith(github.ref_name, '.x') }}
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/spomky-labs/phpqa:8.4
|
||||
env:
|
||||
XDEBUG_MODE: coverage
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --no-progress
|
||||
- name: Run PHPUnit
|
||||
run: castor phpunit
|
||||
- name: Execute Infection
|
||||
run: castor infect
|
||||
|
||||
exported_files:
|
||||
name: "8️⃣ Exported Files Check"
|
||||
needs: [prepare_dependencies]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
- name: Check exported files
|
||||
run: |
|
||||
EXPECTED="CODE_OF_CONDUCT.md,LICENSE,README.md,RELEASES.md,SECURITY.md,composer.json"
|
||||
CURRENT=$(git archive HEAD | tar --list | grep -v '/$' | grep -Ev '^(\.github|assets|bin|config|fixtures|frankenphp|migrations|public|src|templates|translations)/' | sort | paste -sd "," -)
|
||||
echo "CURRENT = ${CURRENT}"
|
||||
echo "EXPECTED = ${EXPECTED}"
|
||||
if [[ "$CURRENT" != "$EXPECTED" ]]; then
|
||||
echo "❌ Exported files do not match expected list"
|
||||
exit 1
|
||||
fi
|
||||
14
vendor/spomky-labs/cbor-php/.github/workflows/dependency-review.yml
vendored
Normal file
14
vendor/spomky-labs/cbor-php/.github/workflows/dependency-review.yml
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
name: 'Dependency Review'
|
||||
on: [pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout Repository'
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: 'Dependency Review'
|
||||
uses: actions/dependency-review-action@v5.0.0
|
||||
29
vendor/spomky-labs/cbor-php/.github/workflows/lock-closed-issues.yml
vendored
Normal file
29
vendor/spomky-labs/cbor-php/.github/workflows/lock-closed-issues.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: 'Lock Issues'
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '12 6 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lock:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
# Required to comment on and lock closed issues.
|
||||
issues: write
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v6.0.2
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: '31'
|
||||
exclude-issue-created-before: ''
|
||||
exclude-any-issue-labels: ''
|
||||
add-issue-labels: ''
|
||||
issue-comment: >
|
||||
This thread has been automatically locked since there has not been
|
||||
any recent activity after it was closed. Please open a new issue for
|
||||
related bugs.
|
||||
issue-lock-reason: 'resolved'
|
||||
process-only: 'issues'
|
||||
105
vendor/spomky-labs/cbor-php/.github/workflows/release-on-milestone-closed.yml
vendored
Normal file
105
vendor/spomky-labs/cbor-php/.github/workflows/release-on-milestone-closed.yml
vendored
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
name: "Automatic Releases"
|
||||
|
||||
# The five commands must stay steps of a single job: "release" runs
|
||||
# `git checkout <release branch>`, which is what makes that branch available
|
||||
# locally, and the following commands require it. Splitting them into separate
|
||||
# jobs gives each one a fresh checkout of the default branch, so every release
|
||||
# made from an older branch fails with "not a valid object name".
|
||||
#
|
||||
# The checkout must be unshallow for the same reason: "switch-default-branch-
|
||||
# to-next-minor" resolves the newest release branch locally, and the default
|
||||
# shallow clone only contains the ref that triggered the workflow.
|
||||
#
|
||||
# Every step uses the vendored ./.github/actions/automatic-releases, which is
|
||||
# laminas/automatic-releases 1.26.2 with its Docker image referenced by digest
|
||||
# instead of the floating `:1` tag — GHCR publishes no versioned manifest to
|
||||
# pin instead. See that file for the refresh procedure.
|
||||
#
|
||||
# TODO(#154): ORGANIZATION_ADMIN_TOKEN is an org-wide classic PAT with admin
|
||||
# rights over every Spomky-Labs repository. It should be replaced by a
|
||||
# fine-grained PAT scoped to this repository alone, with Contents, Pull
|
||||
# requests and Issues set to write. Only the two steps below actually need it
|
||||
# (they push branches and change the default branch); the remaining three run
|
||||
# on the workflow's own GITHUB_TOKEN.
|
||||
|
||||
on:
|
||||
milestone:
|
||||
types:
|
||||
- "closed"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "Release"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# `bump-changelog` pushes a commit to the originating release branch.
|
||||
contents: write
|
||||
# `create-milestones` opens the milestones for the next versions.
|
||||
issues: write
|
||||
# `create-merge-up-pull-request` opens the merge-up PR.
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: "actions/checkout@v7.0.1"
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "Release"
|
||||
uses: "./.github/actions/automatic-releases"
|
||||
with:
|
||||
command-name: "laminas:automatic-releases:release"
|
||||
env:
|
||||
"SHELL_VERBOSITY": "3"
|
||||
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
|
||||
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
|
||||
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
|
||||
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
|
||||
|
||||
- name: "Create Merge-Up Pull Request"
|
||||
uses: "./.github/actions/automatic-releases"
|
||||
with:
|
||||
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
|
||||
env:
|
||||
"SHELL_VERBOSITY": "3"
|
||||
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
|
||||
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
|
||||
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
|
||||
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
|
||||
|
||||
- name: "Create and/or Switch to new Release Branch"
|
||||
uses: "./.github/actions/automatic-releases"
|
||||
with:
|
||||
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
|
||||
env:
|
||||
"SHELL_VERBOSITY": "3"
|
||||
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
|
||||
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
|
||||
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
|
||||
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
|
||||
|
||||
- name: "Bump Changelog Version On Originating Release Branch"
|
||||
uses: "./.github/actions/automatic-releases"
|
||||
with:
|
||||
command-name: "laminas:automatic-releases:bump-changelog"
|
||||
env:
|
||||
"SHELL_VERBOSITY": "3"
|
||||
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
|
||||
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
|
||||
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
|
||||
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
|
||||
|
||||
- name: "Create new milestones"
|
||||
uses: "./.github/actions/automatic-releases"
|
||||
with:
|
||||
command-name: "laminas:automatic-releases:create-milestones"
|
||||
env:
|
||||
"SHELL_VERBOSITY": "3"
|
||||
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
|
||||
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
|
||||
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
|
||||
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
|
||||
62
vendor/spomky-labs/cbor-php/.github/workflows/scorecards.yml
vendored
Normal file
62
vendor/spomky-labs/cbor-php/.github/workflows/scorecards.yml
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
name: Scorecards supply-chain security
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '34 4 * * 6'
|
||||
push:
|
||||
branches:
|
||||
- "*.*.x"
|
||||
|
||||
# Declare default permissions as read only.
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
name: Scorecards analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
# Needed to upload the results to code-scanning dashboard.
|
||||
security-events: write
|
||||
# Used to receive a badge. (Upcoming feature)
|
||||
id-token: write
|
||||
# Needs for private repositories.
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@v2.4.4
|
||||
with:
|
||||
results_file: results.sarif
|
||||
results_format: sarif
|
||||
# (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
|
||||
# - you want to enable the Branch-Protection check on a *public* repository, or
|
||||
# - you are installing Scorecards on a *private* repository
|
||||
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
|
||||
# repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
|
||||
|
||||
# Publish the results for public repositories to enable scorecard badges. For more details, see
|
||||
# https://github.com/ossf/scorecard-action#publishing-results.
|
||||
# For private repositories, `publish_results` will automatically be set to `false`, regardless
|
||||
# of the value entered here.
|
||||
publish_results: true
|
||||
|
||||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
||||
# format to the repository Actions tab.
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
with:
|
||||
name: SARIF file
|
||||
path: results.sarif
|
||||
retention-days: 5
|
||||
|
||||
# Upload the results to GitHub's code scanning dashboard.
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@v4.37.9
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
Loading…
Add table
Add a link
Reference in a new issue