From e00ad50d0f57e970cca3d4d0f0a3a9f662d7446f Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 7 Jul 2026 15:58:05 +0300 Subject: [PATCH] Cleanup workflows --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++--------- .github/workflows/zizmor.yml | 6 ++---- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df7df24..ac49f86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,13 +37,32 @@ jobs: extensions: sodium, openssl phpunit-without-openssl: - uses: yiisoft/actions/.github/workflows/phpunit.yml@master - secrets: - codecovToken: ${{ secrets.CODECOV_TOKEN }} - with: - coverage: xdebug - os: >- - ['windows-latest'] - php: >- - ['8.2'] - test-extensions: :openssl + name: PHP 8.2 without openssl + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Install PHP with extensions + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Install Composer dependencies + uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 + + - name: Prepare PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + coverage: xdebug + extensions: :openssl + + - name: Run tests with PHPUnit with code coverage + run: vendor/bin/phpunit --coverage-clover=coverage.xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index dce9aec..50a4b5e 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -2,13 +2,11 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: push: - paths: + paths: &paths - '.github/**.yml' - '.github/**.yaml' pull_request: - paths: - - '.github/**.yml' - - '.github/**.yaml' + paths: *paths permissions: contents: read