Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Application CI

on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
name: PHP CI ${{ matrix.php-versions }}
strategy:
matrix:
php-versions:
- 8.2
- 8.3

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Run unit tests
run: bin/atoum -ulr
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
on: push
name: test
name: Static Analysis

jobs:
php-cs-fixer:
phpcsfixer:
name: PHP Coding Standards Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 8.3
args: --no-scripts --dev
- name: Php cs fixer
run: bin/php-cs-fixer fix
run: composer install --no-interaction --no-progress
- name: PHP Coding Standards Fixer
run: bin/php-cs-fixer fix --dry-run --diff

phpstan:
name: PHPStan Static Analysis
Expand All @@ -28,14 +26,12 @@ jobs:
- uses: actions/checkout@v3
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 8.3
args: --no-scripts --dev
run: composer install --no-interaction --no-progress
- name: PHPStan Static Analysis
run: bin/phpstan --memory-limit=1G
run: bin/phpstan --memory-limit=1G --error-format=github
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,8 @@ parameters:
message: "#^Method Rezzza\\\\SecurityBundle\\\\Security\\\\Firewall\\\\RequestSignatureProdiver\\:\\:supportsClass\\(\\) has parameter \\$class with no type specified\\.$#"
count: 1
path: Security/Firewall/RequestSignatureProdiver.php

-
message: "#^Method Rezzza\\\\SecurityBundle\\\\Security\\\\SignatureValidUser\\:\\:getUserIdentifier\\(\\) should return non\\-empty\\-string but returns ''\\.$#"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cmon, fix it 😛

count: 1
path: Security/SignatureValidUser.php