Skip to content
Open
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
2 changes: 2 additions & 0 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:

name: backwards compatibility

permissions:
contents: read
jobs:
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
Expand Down
40 changes: 10 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ name: build

permissions:
contents: read

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
Expand All @@ -38,32 +37,13 @@ jobs:
extensions: sodium, openssl

phpunit-without-openssl:
name: PHP 8.2 without openssl
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- 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@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
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
2 changes: 2 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:

name: Composer require checker

permissions:
contents: read
jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:

name: mutation test

permissions:
contents: read
jobs:
mutation:
uses: yiisoft/actions/.github/workflows/infection.yml@master
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ on:
- '.php-cs-fixer.dist.php'

permissions:
contents: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
rector:
permissions:
contents: write # Required to commit automated Rector and CS fixes.
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
with:
php: '8.2'
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:

name: static analysis

permissions:
contents: read
jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
paths:
- '.github/**.yml'
- '.github/**.yaml'
pull_request:
paths:
- '.github/**.yml'
- '.github/**.yaml'

permissions:
contents: read

jobs:
zizmor:
uses: yiisoft/actions/.github/workflows/zizmor.yml@master
5 changes: 5 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rules:
unpinned-uses:
config:
policies:
"yiisoft/*": any
Loading