Skip to content

Commit

Permalink
fix/update CI jobs (II)
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 31, 2024
1 parent 808ce5d commit 154797a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,18 @@ on: [ push, pull_request, workflow_dispatch ]
jobs:
static-analysis:
runs-on: ubuntu-22.04
container:
image: phpswoole/swoole:6.0-php8.3

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
extensions: redis-stable, swoole-stable
ini-values: swoole.enable_library=off
coverage: none
env:
SWOOLE_CONFIGURE_OPTS: --enable-mysqlnd --enable-swoole-pgsql --enable-openssl --enable-sockets --enable-swoole-curl

- name: Install PHPStan
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require phpstan/phpstan=~2.0 -n -q --no-progress
- name: Setup PHP And Swoole
run: |
set -e
echo "swoole.enable_library=Off" >> /usr/local/etc/php/conf.d/docker-php-ext-swoole.ini
composer global require -n -q --no-progress -- phpstan/phpstan=~2.0
- name: Run Static Analysis
run: ./vendor/bin/phpstan analyse --no-progress --memory-limit 2G
run: ~/.composer/vendor/bin/phpstan analyse --no-progress --memory-limit 2G
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["8.1", "8.2", "8.3", "8.4"]
php: ["8.1", "8.2", "8.3"]
swoole-prefix: ["5.1-", ""]
exclude:
- php: "8.4"
Expand Down

0 comments on commit 154797a

Please sign in to comment.