Skip to content

Commit

Permalink
wielkie rzeczy
Browse files Browse the repository at this point in the history
  • Loading branch information
clash82 committed Jul 18, 2023
1 parent 3d62afa commit eeb0fd5
Show file tree
Hide file tree
Showing 51 changed files with 919 additions and 972 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/phan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: phan

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
phan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Run phan tool
run: vendor/phan/phan/phan --allow-polyfill-parser
40 changes: 40 additions & 0 deletions .github/workflows/php-cs-fixer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: php-cs-fixer

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Run php-cs-fixer tool
run: vendor/bin/php-cs-fixer fix --dry-run --diff
40 changes: 40 additions & 0 deletions .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: phpstan

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
phpstan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Run phpstan tool
run: vendor/bin/phpstan analyse
63 changes: 63 additions & 0 deletions .github/workflows/phpunit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: phpunit

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
phpunit:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.8'

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Yarn dependencies
run: yarn install

- name: Compile assets
run: yarn encore dev

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Create test database
run: php bin/console doctrine:database:create --env=test

- name: Create database schema
run: php bin/console doctrine:schema:create --env=test

- name: Load database fixtures
run: php bin/console doctrine:fixtures:load -n --env=test

- name: Run test suite
run: php vendor/bin/phpunit
40 changes: 40 additions & 0 deletions .github/workflows/psalm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: psalm

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
psalm:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Run psalm tool
run: vendor/bin/psalm --show-info=false
40 changes: 40 additions & 0 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: rector

on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master

jobs:
rector:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Composer dependencies
run: composer install -o

- name: Run rector tool
run: vendor/bin/rector process --dry-run
Loading

0 comments on commit eeb0fd5

Please sign in to comment.