Skip to content

Commit

Permalink
ci: split CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jul 30, 2024
1 parent bf76235 commit 38f5049
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 38f5049

Please sign in to comment.