Merge pull request #719 from nextcloud/backport/717/stable33 #818
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors | |
| # SPDX-License-Identifier: MIT | |
| name: Check same code base | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - stable* | |
| permissions: | |
| contents: read | |
| jobs: | |
| php-lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: ["8.2"] | |
| name: check-same-code-base | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up php ${{ matrix.php-versions }} | |
| uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| ini-file: development | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: composer i | |
| - name: check-same-code-base | |
| run: make check-same-code-base | |
| - name: check-updater-phar | |
| run: | | |
| composer -V --ansi | |
| ./vendor/bin/box info -lm flat updater.phar | LC_LOCALE=C sort | grep -Ev "^(Signature Hash| Version.php |Contents: | installed.php |Timestamp: )" > updater.old.txt | |
| # Makes sure repository is clean so the version isn't generated with "dirty" suffix | |
| git restore . | |
| make updater.phar | |
| ./vendor/bin/box info -lm flat updater.phar | LC_LOCALE=C sort | grep -Ev "^(Signature Hash| Version.php |Contents: | installed.php |Timestamp: )" > updater.txt | |
| diff --suppress-common-lines -t --tabsize=4 -d -y --color=always updater.txt updater.old.txt |