diff options
author | Joas Schilling <coding@schilljs.com> | 2025-02-21 12:12:29 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-02-21 12:04:34 +0000 |
commit | 5e2b8c22faff5895a039d7fd7d1a1cf04a8b7e54 (patch) | |
tree | 10ec8140a25abe2712732380dddf893ee1c6238b | |
parent | 8c2a39cd89eb088e5f6fcb2bd4e9255bccf18dbe (diff) | |
download | nextcloud-server-backport/50949/stable31.tar.gz nextcloud-server-backport/50949/stable31.zip |
ci(autochecks): Run some autochecks also on non-PHP filesbackport/50949/stable31
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | .github/workflows/autocheckers.yml | 35 | ||||
-rw-r--r-- | build/files-checker.php | 2 | ||||
-rw-r--r-- | build/htaccess-checker.php | 2 | ||||
-rw-r--r-- | build/translation-checker.php | 2 | ||||
-rw-r--r-- | build/triple-dot-checker.php | 2 |
5 files changed, 39 insertions, 4 deletions
diff --git a/.github/workflows/autocheckers.yml b/.github/workflows/autocheckers.yml index 5db62aa7850..d57a1949b83 100644 --- a/.github/workflows/autocheckers.yml +++ b/.github/workflows/autocheckers.yml @@ -37,7 +37,7 @@ jobs: - 'composer.lock' - '**.php' - autocheckers: + autoloader: runs-on: ubuntu-latest needs: changes @@ -51,8 +51,9 @@ jobs: steps: - name: Checkout server - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: + persist-credentials: false submodules: true - name: Set up php ${{ matrix.php-versions }} @@ -71,6 +72,32 @@ jobs: - name: Check auto loaders run: bash ./build/autoloaderchecker.sh + autocheckers: + runs-on: ubuntu-latest-low + + strategy: + matrix: + php-versions: ['8.1'] + + name: Translation and Files checkers + + steps: + - name: Checkout server + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + submodules: true + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 #v2.32.0 + with: + php-version: ${{ matrix.php-versions }} + extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite + coverage: none + ini-file: development + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check translations are JSON decodeable run: php ./build/translation-checker.php @@ -87,7 +114,7 @@ jobs: permissions: contents: none runs-on: ubuntu-latest-low - needs: [changes, autocheckers] + needs: [changes, autoloader, autocheckers] if: always() @@ -95,4 +122,4 @@ jobs: steps: - name: Summary status - run: if ${{ needs.changes.outputs.src != 'false' && needs.autocheckers.result != 'success' }}; then exit 1; fi + run: if ${{ needs.autocheckers.result != 'success' || (needs.changes.outputs.src != 'false' && needs.autoloader.result != 'success') }}; then exit 1; fi diff --git a/build/files-checker.php b/build/files-checker.php index 3231334efc3..37f58650025 100644 --- a/build/files-checker.php +++ b/build/files-checker.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/build/htaccess-checker.php b/build/htaccess-checker.php index b0c7a1bd735..963b3edb34b 100644 --- a/build/htaccess-checker.php +++ b/build/htaccess-checker.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/build/translation-checker.php b/build/translation-checker.php index 6b820bea190..fb719fc9ff1 100644 --- a/build/translation-checker.php +++ b/build/translation-checker.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/build/triple-dot-checker.php b/build/triple-dot-checker.php index d5e67f835f3..171abfaf433 100644 --- a/build/triple-dot-checker.php +++ b/build/triple-dot-checker.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later |