diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..5cf1afb --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,35 @@ +name: PHP + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + extensions: redis + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run test suite + run: composer run integration + + - name: Run cs + run: composer run cs + + - name: Run phpstan + run: composer run phpstan