Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Jan 12, 2024
1 parent f394e01 commit 5da05e8
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ jobs:
name: "Composer Validate"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
ini-values: memory_limit=-1
coverage: none
tools: composer:v2

- name: 'Validate composer.json'
run: composer validate --no-check-all --strict --no-check-lock
Expand All @@ -23,7 +31,15 @@ jobs:
name: "Composer Install"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
ini-values: memory_limit=-1
coverage: none
tools: composer:v2

- name: 'Install Dependencies'
run: composer install --prefer-dist --no-progress --no-interaction
Expand All @@ -36,7 +52,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -51,8 +67,8 @@ jobs:
working-directory: './'

- name: 'Run CodeSniffer'
run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests|src|public" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony

run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony
static-analysis:
needs: composer-install
runs-on: ubuntu-latest
Expand All @@ -61,7 +77,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -88,10 +104,10 @@ jobs:
php-version:
- '8.1'
symfony-version:
- '6.1'
- '6.4'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -118,7 +134,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -141,8 +157,9 @@ jobs:
path: reports

- name: 'Upload to Codecov'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
flags: unittests
verbose: true

0 comments on commit 5da05e8

Please sign in to comment.