use Swoole Table to store Redis data #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-22.04 | |
container: | |
image: deminy/swoole-by-examples:server-5.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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=^1.11.x-dev \ | |
predis/predis=~2.2 \ | |
swoole/library=~5.0 | |
- name: Run Static Analysis | |
run: ~/.composer/vendor/bin/phpstan analyse --no-progress --memory-limit 2G |