Skip to content

Commit

Permalink
Pipeline improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Oct 14, 2024
1 parent da66074 commit 2b56d3e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 29 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# This file is used to define a set of default reviewers.

- @v16Studios @leonardocustodio @enjinabner
9 changes: 3 additions & 6 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2]
php: [8.3]

name: PHP ${{ matrix.php }}

Expand Down Expand Up @@ -58,14 +58,11 @@ jobs:
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PHP_COMMONS }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
composer install --no-interaction --prefer-dist --optimize-autoloader
composer install --no-interaction --no-progress
composer require enjin/platform-core:dev-master
composer build-sr25519
composer dump-autoload
- name: Run Laravel Pint
run: |
./vendor/bin/pint --test
- name: Execute tests
run: |
php -d pcov.enabled=1 ./vendor/bin/phpunit --colors=always --coverage-clover coverage.xml
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2]
php: [8.3]

name: PHP ${{ matrix.php }}

Expand All @@ -51,8 +51,13 @@ jobs:
- name: Install dependencies
run: |
composer install --no-interaction --no-progress
composer require enjin/platform-core:dev-master
composer dump-autoload
- name: Run Rector
run: |
./vendor/bin/rector process --dry-run
- name: Run Laravel Pint
run: |
./vendor/bin/pint --test
5 changes: 3 additions & 2 deletions .github/workflows/security_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
tools: composer:v2
coverage: none

Expand All @@ -33,7 +33,8 @@ jobs:
- name: Install dependencies
run: |
cd security-checker/
composer install
composer install --no-interaction --no-progress
composer require enjin/platform-core:dev-master
- name: Run
run: php security-checker security:check ../composer.lock
38 changes: 19 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,30 @@
}
],
"require": {
"php": "^8.2|^8.3",
"php": "^8.3",
"ext-bcmath": "*",
"ext-gmp": "*",
"ext-json": "*",
"ext-openssl": "*",
"ext-gmp": "*",
"enjin/platform-core": "*",
"phrity/websocket": "^1.0",
"rebing/graphql-laravel": "^9.2",
"rector/rector": "^1.0",
"spatie/laravel-package-tools": "^1.0",
"spatie/laravel-ray": "^1.0",
"phrity/websocket": "^1.0",
"rector/rector": "^1.0"
"spatie/laravel-ray": "^1.0"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "dev-master",
"laravel/pint": "^1.15",
"nunomaduro/collision": "^8.1",
"larastan/larastan": "^2.0",
"orchestra/testbench": "^9.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -69,18 +82,5 @@
}
},
"minimum-stability": "dev",
"prefer-stable": false,
"require-dev": {
"dms/phpunit-arraysubset-asserts": "dev-master",
"laravel/pint": "^1.15",
"nunomaduro/collision": "^8.1",
"larastan/larastan": "^2.0",
"orchestra/testbench": "^9.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest"
}
"prefer-stable": true
}

0 comments on commit 2b56d3e

Please sign in to comment.