From 86fac3d6462bc2532f5582e29556340ee2dc6bfe Mon Sep 17 00:00:00 2001 From: SmeagolWorms4 Date: Tue, 19 Dec 2023 11:39:34 +0100 Subject: [PATCH] Add symfony version --- .github/actions/test/action.yml | 2 ++ .../{symfony_5.3.yml => php_8.2.yml} | 5 ++-- .github/workflows/php_8.3.yml | 23 +++++++++++++++++++ .github/workflows/symfony_6.1.yml | 23 +++++++++++++++++++ .github/workflows/symfony_6.2.yml | 23 +++++++++++++++++++ .github/workflows/symfony_6.3.yml | 23 +++++++++++++++++++ .github/workflows/symfony_6.4.yml | 23 +++++++++++++++++++ README.md | 2 +- 8 files changed, 121 insertions(+), 3 deletions(-) rename .github/workflows/{symfony_5.3.yml => php_8.2.yml} (82%) create mode 100644 .github/workflows/php_8.3.yml create mode 100644 .github/workflows/symfony_6.1.yml create mode 100644 .github/workflows/symfony_6.2.yml create mode 100644 .github/workflows/symfony_6.3.yml create mode 100644 .github/workflows/symfony_6.4.yml diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 1c82181..2b714d2 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -46,6 +46,8 @@ runs: run: | if [ "${{ inputs.symfony_version }}" != "" ]; then composer require "symfony/symfony:${{ inputs.symfony_version }}" --no-update; fi; if [ "${{ inputs.doctrine_version }}" != "" ]; then composer require "doctrine/orm:${{ inputs.doctrine_version }}" --no-update; fi; + if [ "${{ inputs.symfony_version }}" == "5.0" ]; then composer require "sensio/framework-extra-bundle:6.0" --no-update; fi; # Fix deprecated methode on SF 5.0 + if [[ "$(echo "${{ inputs.symfony_version }} >= 6.1" | bc -l)" -eq 1 ]]; then composer require "monolog/monolog" "masterminds/html5" --no-update; fi; # Fix dependencie on SF >= 6.1 if [ "${{ inputs.php_version }}" == "7.2" ]; then composer require --dev "phpunit/phpunit:8.5" --no-update; fi; if [ "${{ inputs.php_version }}" == "7.1" ]; then composer require --dev "phpunit/phpunit:7" --no-update; fi; if [ "${{ inputs.php_version }}" == "7.0" ]; then composer require --dev "phpunit/phpunit:6" --no-update; fi; diff --git a/.github/workflows/symfony_5.3.yml b/.github/workflows/php_8.2.yml similarity index 82% rename from .github/workflows/symfony_5.3.yml rename to .github/workflows/php_8.2.yml index 8a68dab..8959354 100644 --- a/.github/workflows/symfony_5.3.yml +++ b/.github/workflows/php_8.2.yml @@ -1,4 +1,4 @@ -name: Symfony 5.3 +name: PHP 8.2 on: push: @@ -17,6 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/test with: - symfony_version: '5.3' + symfony_version: '6.2' + php_version: '8.2' github_token: ${{ secrets.GITHUB_TOKEN }} discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/php_8.3.yml b/.github/workflows/php_8.3.yml new file mode 100644 index 0000000..e8f7fa9 --- /dev/null +++ b/.github/workflows/php_8.3.yml @@ -0,0 +1,23 @@ +name: PHP 8.3 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + symfony_version: '6.4' + php_version: '8.3' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/symfony_6.1.yml b/.github/workflows/symfony_6.1.yml new file mode 100644 index 0000000..aa13813 --- /dev/null +++ b/.github/workflows/symfony_6.1.yml @@ -0,0 +1,23 @@ +name: Symfony 6.1 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + symfony_version: '6.1' + php_version: '8.1' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/symfony_6.2.yml b/.github/workflows/symfony_6.2.yml new file mode 100644 index 0000000..9a985d5 --- /dev/null +++ b/.github/workflows/symfony_6.2.yml @@ -0,0 +1,23 @@ +name: Symfony 6.2 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + symfony_version: '6.2' + php_version: '8.1' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/symfony_6.3.yml b/.github/workflows/symfony_6.3.yml new file mode 100644 index 0000000..5144299 --- /dev/null +++ b/.github/workflows/symfony_6.3.yml @@ -0,0 +1,23 @@ +name: Symfony 6.3 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + symfony_version: '6.3' + php_version: '8.1' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/symfony_6.4.yml b/.github/workflows/symfony_6.4.yml new file mode 100644 index 0000000..54848da --- /dev/null +++ b/.github/workflows/symfony_6.4.yml @@ -0,0 +1,23 @@ +name: Symfony 6.4 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + symfony_version: '6.4' + php_version: '8.2' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/README.md b/README.md index 71e6f10..deb13e4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Build Status](https://github.com/GollumSF/entity-relation-setter/actions/workflows/symfony_4.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/entity-relation-setter/actions) [![Build Status](https://github.com/GollumSF/entity-relation-setter/actions/workflows/symfony_5.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/entity-relation-setter/actions) -[![Build Status](https://github.com/GollumSF/entity-relation-setter/actions/workflows/symfony_6.0.yml/badge.svg?branch=master)](https://github.com/GollumSF/entity-relation-setter/actions) +[![Build Status](https://github.com/GollumSF/entity-relation-setter/actions/workflows/symfony_6.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/entity-relation-setter/actions) [![Coverage](https://coveralls.io/repos/github/GollumSF/entity-relation-setter/badge.svg?branch=master)](https://coveralls.io/github/GollumSF/entity-relation-setter) [![License](https://poser.pugx.org/gollumsf/entity-relation-setter/license)](https://packagist.org/packages/gollumsf/entity-relation-setter)