From 7211ae08fc9512edab5fa308f1a23ae2de1771f4 Mon Sep 17 00:00:00 2001 From: Erwane Date: Mon, 11 Aug 2025 21:32:23 +0200 Subject: [PATCH 1/4] ci-test --- .editorconfig | 3 +++ .github/workflows/ci.yml | 50 ++++++++++------------------------------ 2 files changed, 15 insertions(+), 38 deletions(-) diff --git a/.editorconfig b/.editorconfig index ddc5c02..0f99111 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,3 +12,6 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 598db63..3762c48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,46 +15,20 @@ permissions: jobs: testsuite: runs-on: ubuntu-24.04 - strategy: - fail-fast: false - matrix: - php-version: - - '8.0' steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - extensions: mbstring, intl - ini-values: zend.assertions = 1 - coverage: pcov - - - name: Composer install - uses: ramsey/composer-install@v3 - with: - dependency-versions: ${{ matrix.dependencies }} - composer-options: "${{ matrix.composer-options }}" - - - name: Run PHPUnit - env: - XDEBUG_MODE: coverage - run: | - if [[ '${{ matrix.php-version }}' == '8.0' ]]; then - export CODECOVERAGE=1 - vendor/bin/phpunit --coverage-clover=coverage.xml - else - vendor/bin/phpunit - fi - - - name: Submit code coverage - if: matrix.php-version == '8.0' - uses: codecov/codecov-action@v5 - with: - files: coverage.xml - token: ${{ secrets.CODECOV_TOKEN }} + - uses: actions/checkout@v4 + + - uses: php-actions/composer@v6 + + - name: PHPUnit Tests + uses: php-actions/phpunit@v4 + env: + TEST_NAME: Scarlett + with: + php_version: "8.0" + version: 8 + args: --coverage-text cs-stan: name: Coding Standard & Static Analysis From bd98c0dce4483c4d5ef70372f3c1077029cdf212 Mon Sep 17 00:00:00 2001 From: Erwane Date: Mon, 11 Aug 2025 21:33:48 +0200 Subject: [PATCH 2/4] fix php_version --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3762c48..82e4746 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,13 +20,15 @@ jobs: - uses: actions/checkout@v4 - uses: php-actions/composer@v6 + with: + php_version: '8.0' - name: PHPUnit Tests uses: php-actions/phpunit@v4 env: TEST_NAME: Scarlett with: - php_version: "8.0" + php_version: '8.0' version: 8 args: --coverage-text From f8506ec70de8af9fa1c2cfde82d964807b8eed03 Mon Sep 17 00:00:00 2001 From: Erwane Date: Mon, 11 Aug 2025 21:36:47 +0200 Subject: [PATCH 3/4] fix phpunit version --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82e4746..6415076 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,8 @@ jobs: TEST_NAME: Scarlett with: php_version: '8.0' - version: 8 - args: --coverage-text + version: '8.5' + coverage_clover: coverage.xml cs-stan: name: Coding Standard & Static Analysis From 7eef67e2b4076f13195253fd868e90ac9d30f5d3 Mon Sep 17 00:00:00 2001 From: Erwane Date: Mon, 11 Aug 2025 21:38:51 +0200 Subject: [PATCH 4/4] fix configuration --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6415076..753a724 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,11 @@ jobs: TEST_NAME: Scarlett with: php_version: '8.0' + php_extensions: intl, mbstring, xdebug version: '8.5' coverage_clover: coverage.xml + configuration: phpunit.xml.dist + cs-stan: name: Coding Standard & Static Analysis