Skip to content

Commit

Permalink
Update the GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Nov 16, 2023
1 parent d7e68ce commit d9c692e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,26 @@ jobs:
cs:
name: Coding Style
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2

- name: Checkout
uses: actions/checkout@v2

- name: Install ecs
run: cd tools/ecs && composer install --no-interaction --no-suggest
- name: Install the dependencies
run: composer install --no-interaction --no-suggest

- name: Run the CS fixer
run: composer cs-fixer

tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
if: github.event_name != 'push'
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
php: [8.1, 8.2, 8.3]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -45,9 +43,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer install --no-interaction --no-suggest

- name: Install the dependencies
run: composer install --no-interaction --no-suggest

Expand All @@ -57,11 +52,10 @@ jobs:
prefer-lowest-tests:
name: PHP ${{ matrix.php }} --prefer-lowest
runs-on: ubuntu-latest
if: github.event_name != 'push'
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
php: [8.1, 8.2, 8.3]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -71,9 +65,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer install --no-interaction --no-suggest

- name: Install the dependencies
run: composer update --prefer-lowest --prefer-stable --no-interaction --no-suggest

Expand Down
1 change: 1 addition & 0 deletions src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __invoke(string $tag)
$value = $chunks[3] ?? '';

$manager = $this->formManagerFactory->forFormId((int) $formId);

return match ($type) {
'step' => $this->getStepValue($manager, $value),
'field_value' => $manager->getDataOfAllSteps()->getAllSubmitted()[$value] ?? '',
Expand Down

0 comments on commit d9c692e

Please sign in to comment.