Skip to content

Commit

Permalink
[PLA-2043] Prefer stable release (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Custodio <[email protected]>
  • Loading branch information
leonardocustodio authored Oct 16, 2024
1 parent 8c187a5 commit 215cdaf
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup GO
uses: actions/setup-go@v5
with:
go-version: "^1.19"
go-version: "^1.23"

- name: Setup problem matchers
run: |
Expand All @@ -60,13 +60,13 @@ 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 build-sr25519
composer dump-autoload
composer install --no-interaction --prefer-dist --no-autoloader --no-dev --no-scripts
- name: Run Laravel Pint
- name: Update packages
run: |
./vendor/bin/pint --test
composer require enjin/platform-core:dev-master --no-update
composer update --no-interaction --optimize-autoloader
composer build-sr25519
- name: Execute tests
run: |
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Static Application Security Testing

on:
pull_request:
push:
paths-ignore:
- "**.md"

jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_DATABASE: platform
MYSQL_ROOT_PASSWORD: password
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis:7
ports:
- 6379:6379
options: --entrypoint redis-server
strategy:
fail-fast: true
matrix:
php: [8.3]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, gmp, intl, json, mysql, readline, sodium, bcmath, pcov
tools: composer:v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PHP_COMMONS }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
composer install --no-interaction --prefer-dist --no-autoloader --no-dev --no-scripts
- name: Update packages
run: |
composer require enjin/platform-core:dev-master --no-update
composer update --no-interaction --optimize-autoloader
composer build-sr25519
- name: Run Rector
run: |
./vendor/bin/rector process --dry-run
- name: Run Laravel Pint
run: |
./vendor/bin/pint --test
28 changes: 14 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@
"spatie/laravel-package-tools": "^1.0",
"spatie/laravel-ray": "^1.0"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "dev-master",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^8.0",
"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": {
"Enjin\\Platform\\Beam\\": "src",
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.0",
"nunomaduro/collision": "^8.0",
"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 215cdaf

Please sign in to comment.