Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ jobs:
- name: Build container
run: docker compose build app

- name: Run tests
- name: Check codestyle
run: docker compose run --rm app ./vendor/bin/phpcs --standard=psr2 --ignore=vendor -n .

- name: Static analysis
run: docker compose run --rm app composer phpstan

- name: Push
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-cli
FROM php:8.3-cli

WORKDIR /code

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Assorted CLI utils
1. Clone the repo
2. Init .env file `cp .env.dist .env` (actual values are not needed unless you want to run `manage:mass-project-remove-expiration`)
3. Build the image `docker compose build dev`
4. [optional] Install dependencies `docker run --rm dev composer install`
4. [optional] Install dependencies `docker compose run --rm dev composer install`
5. Update the code
6. Run a command `docker compose run --rm app php cli.php <command>`

Expand Down
21 changes: 15 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"name": "keboola/cli-utils",
"require": {
"php": "^8.2",
"php": "^8.3",
"symfony/console": "^3.1",
"keboola/sandboxes-api-php-client": "^6.31",
"keboola/storage-api-client": "^14",
"keboola/sandboxes-api-php-client": "6.32.0",
"keboola/storage-api-client": "^18.5.0",
"keboola/kbc-manage-api-php-client": "^7",
"symfony/event-dispatcher": "6.4.*",
"keboola/job-queue-api-php-client": "^2.2"
"keboola/job-queue-api-php-client": "^5.2.0",
"psr/log": "^2.0|^3.0",
"symfony/config": "^6.0|^7.0",
"keboola/php-datatypes": "^8.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.*"
"squizlabs/php_codesniffer": "3.*",
"phpstan/phpstan": "^2.0"
},
"authors": [
{
Expand All @@ -23,5 +27,10 @@
"psr-0": {
"Keboola\\Console": "src/"
}
}
},
"scripts": {
"phpstan": "phpstan analyse --memory-limit=512M",
"phpcs": "phpcs --standard=PSR2 -n src/",
"phpcbf": "phpcbf --standard=PSR2 -n src/"
}
}
Loading