diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a129598 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: build + +on: + push: + branches: + - 'main' + pull_request: + branches: + - 'main' + +jobs: + test: + name: "Test (PHP ${{ matrix.php-versions }}, Flow ${{ matrix.flow-versions }})" + + strategy: + fail-fast: false + matrix: + php-versions: ["8.2"] + flow-versions: ["8.3"] + include: + - php-versions: '8.3' + flow-versions: '8.3' + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + path: ${{ env.FLOW_FOLDER }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, xml, json, zlib, iconv, intl, pdo_sqlite + ini-values: date.timezone="Africa/Tunis", opcache.fast_shutdown=0, apc.enable_cli=on + + - name: Set Neos Version + run: composer require neos/flow ^${{ matrix.flow-versions }} --no-progress --no-interaction + + - name: Run Linter + run: composer lint + + - name: Run Test + run: composer test diff --git a/Classes/Controller/OpenApiController.php b/Classes/Controller/OpenApiController.php index 038648f..e5c05e4 100644 --- a/Classes/Controller/OpenApiController.php +++ b/Classes/Controller/OpenApiController.php @@ -1,4 +1,5 @@