Skip to content

Commit

Permalink
fix: update check-same-code-base.yml php and actions version
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jun 7, 2023
1 parent 8bb8262 commit fec137b
Show file tree
Hide file tree
Showing 119 changed files with 6,030 additions and 1,635 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/check-same-code-base.yml
Expand Up @@ -16,27 +16,29 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.1"]
php-versions: ["8.2"]

name: check-same-code-base

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: check-same-code-base
run: make check-same-code-base

- name: check-updater-phar
run: |
make box
./box info -l updater.phar | grep -v "^Signature Hash" | grep -v "^ Version.php " | grep -v "^Contents: " >updater.old.txt
./vendor/bin/box info -l updater.phar | grep -v "^Signature Hash" | grep -v "^ Version.php " | grep -v "^Contents: " >updater.old.txt
make updater.phar
./box info -l updater.phar | grep -v "^Signature Hash" | grep -v "^ Version.php " | grep -v "^Contents: " >updater.txt
./vendor/bin/box info -l updater.phar | grep -v "^Signature Hash" | grep -v "^ Version.php " | grep -v "^Contents: " >updater.txt
diff updater.txt updater.old.txt
9 changes: 3 additions & 6 deletions Makefile
@@ -1,13 +1,10 @@
.PHONY: updater.phar

box:
curl -L https://github.com/box-project/box/releases/download/3.11.1/box.phar -o box
chmod +x box

updater.phar: box updater.php lib/*.php buildVersionFile.php
updater.phar: updater.php lib/*.php buildVersionFile.php
php buildVersionFile.php
composer i
composer dump-autoload
./box compile -c box.json
composer run box
chmod +x updater.phar
rm lib/Version.php

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -19,6 +19,7 @@
"symfony/console": "^4.4"
},
"scripts": {
"box": "box compile -c box.json",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"lint": "find . -name \\*.php -not -path './vendor*' -not -path './build/*' -not -path './node_modules/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -29,6 +30,6 @@
"psalm:update-baseline": "psalm --threads=1 --update-baseline"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.5"
"bamarni/composer-bin-plugin": "^1.8"
}
}
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified updater.phar
Binary file not shown.
5 changes: 5 additions & 0 deletions vendor-bin/box/composer.json
@@ -0,0 +1,5 @@
{
"require-dev": {
"humbug/box": "^3.16"
}
}

0 comments on commit fec137b

Please sign in to comment.