diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d152269..7a60351 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,29 +10,52 @@ env: COMPOSER_ROOT_VERSION: "dev-main" jobs: - tests: - strategy: - fail-fast: false - matrix: - actions: - - - name: 'Phpunit' - run: composer phpunit - - name: ${{ matrix.actions.name }} + composer-audit: runs-on: ubuntu-latest - timeout-minutes: 10 - + name: Composer audit steps: - - uses: actions/checkout@v3 - - # see https://github.com/shivammathur/setup-php - - - uses: shivammathur/setup-php@v2 + - name: "Checkout code" + uses: actions/checkout@v4 with: - php-version: 8.1 - coverage: none + set-safe-directory: '*' - - uses: "ramsey/composer-install@v1" + - name: Install PHP with extensions + uses: shivammathur/setup-php@2.26.0 + with: + coverage: "none" + php-version: 8.2 + tools: composer:v2 - - run: ${{ matrix.actions.run }} + - name: "Composer install" + uses: "ramsey/composer-install@2.2.0" + with: + composer-options: "--prefer-dist" + + - name: Run composer audit + uses: alamirault/composer-audit-action@v1 +# tests: +# strategy: +# fail-fast: false +# matrix: +# actions: +# - +# name: 'Phpunit' +# run: composer phpunit +# +# name: ${{ matrix.actions.name }} +# runs-on: ubuntu-latest +# timeout-minutes: 10 +# +# steps: +# - uses: actions/checkout@v3 +# +# # see https://github.com/shivammathur/setup-php +# - +# uses: shivammathur/setup-php@v2 +# with: +# php-version: 8.1 +# coverage: none +# +# - uses: "ramsey/composer-install@v1" +# +# - run: ${{ matrix.actions.run }} diff --git a/composer.json b/composer.json index 4f65d7a..ac71ee6 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,8 @@ "ext-json": "*", "guzzlehttp/guzzle": "^6.3", - "reisraff/accentuation": "^2.0" + "reisraff/accentuation": "^2.0", + "symfony/http-foundation": "6.4.26" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.11", @@ -51,6 +52,9 @@ ] }, "config": { - "bin-dir": "bin" + "bin-dir": "bin", + "audit": { + "block-insecure": false + } } }