-
Notifications
You must be signed in to change notification settings - Fork 40
54 lines (45 loc) · 1.64 KB
/
check-same-code-base.yml
File metadata and controls
54 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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