Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we reuse action from yiisoft/actions?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a specific edge case in this package. Adding this to yiisoft/actions is overhead. Seems, it's not needed anywhere else.

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
6 changes: 2 additions & 4 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading