From 6b34693c9fb2f2a7e71ea1309399195f6481404d Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 2 Oct 2026 10:50:06 +0200 Subject: [PATCH 1/2] feat(workflow): Add fixup block Signed-off-by: Louis Chmn --- .github/workflows/fixup.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/fixup.yml diff --git a/.github/workflows/fixup.yml b/.github/workflows/fixup.yml new file mode 100644 index 000000000..69da2bbb0 --- /dev/null +++ b/.github/workflows/fixup.yml @@ -0,0 +1,36 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization +# +# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT + +name: Block fixup and squash commits + +on: + pull_request: + types: [opened, ready_for_review, reopened, synchronize] + +permissions: + contents: read + +concurrency: + group: fixup-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + commit-message-check: + if: github.event.pull_request.draft == false + + permissions: + pull-requests: write + name: Block fixup and squash commits + + runs-on: ubuntu-latest-low + + steps: + - name: Run check + uses: skjnldsv/block-fixup-merge-action@c138ea99e45e186567b64cf065ce90f7158c236a # v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} From 885da6dccd9f8adea51bbde7c84cdd479802ab2c Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 2 Oct 2026 16:11:10 +0200 Subject: [PATCH 2/2] chore: Add test command for composer Signed-off-by: Louis Chmn --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index b7d117bca..a50ed2fca 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,10 @@ "psalm:update-baseline": "psalm --threads=1 --update-baseline", "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", + "test": [ + "@test:unit" + ], + "test:unit": "vendor/bin/phpunit -c tests/phpunit.xml", "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l" }, "require-dev": {