From 38f5049d8973f239c8b3ba0e0f9c895578f801eb Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Tue, 30 Jul 2024 21:38:29 +0200 Subject: [PATCH] ci: split CI --- .github/workflows/php.yml | 45 +++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8fdd08e..23c29bf 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -12,26 +12,57 @@ permissions: contents: read jobs: - build: + cs: runs-on: ubuntu-latest + name: Code Style steps: - uses: actions/checkout@v4 - - name: Setup PHP with PECL extension + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.1' - extensions: redis, pgsql - 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 - + + phpstan: + runs-on: ubuntu-latest + name: Static Analysis + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + - name: Run phpstan run: composer run phpstan + + phpunit: + runs-on: ubuntu-latest + name: Integration Tests + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + extensions: redis, pgsql + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run test suite + run: composer run integration