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
31 changes: 19 additions & 12 deletions .github/workflows/bc.yml_
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: backwards compatibility

on:
- pull_request
- push
pull_request:
paths: &paths
- 'config/**'
- 'src/**'
- '.github/workflows/bc.yml'
- 'composer.json'
push:
branches: ['master']
paths: *paths

permissions:
contents: read

name: backwards compatibility
jobs:
roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
with:
php: >-
['8.1']
44 changes: 17 additions & 27 deletions .github/workflows/bechmark.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
name: bechmark

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths: &paths
- 'config/**'
- 'src/**'
- 'tests/**'

- '.github/workflows/benchmark.yml'
- 'composer.json'
- 'phpbench.json'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
- 'tests/**'

name: bechmark
paths: *paths

permissions:
contents: read

jobs:
phpbench:
name: PHP ${{ matrix.php }}
Expand All @@ -41,7 +31,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -55,8 +45,8 @@ jobs:
env:
GITHUB_EVENT_REPOSITORY_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

- name: "Baseline creation: Checkout default branch."
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: "Baseline creation: Checkout default branch"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
if: ${{ env.WITH_BENCH_BASELINE == '1' }}
with:
ref: ${{ github.event.repository.default_branch }}
Expand All @@ -67,7 +57,7 @@ jobs:
working-directory: ./tests
run: docker compose build php${{ matrix.php }}

- name: "Baseline creation: Run PhpBench."
- name: "Baseline creation: Run PhpBench"
id: baseline
if: ${{ env.WITH_BENCH_BASELINE == '1' }}
continue-on-error: true
Expand All @@ -78,8 +68,8 @@ jobs:
if: ${{ env.WITH_BENCH_BASELINE == '1' && steps.baseline.outcome == 'failure' }}
run: echo "WITH_BENCH_BASELINE=0" >> $GITHUB_ENV

- name: "Pull request: Checkout head."
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: "Pull request: Checkout head"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -91,7 +81,7 @@ jobs:
working-directory: ./tests
run: docker compose build php${{ matrix.php }}

- name: "Run PhpBench."
- name: Run PhpBench
working-directory: ./tests
run: |
if [ "${WITH_BENCH_BASELINE}" == '1' ]; then
Expand Down
36 changes: 16 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
name: build

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

paths: &paths
- 'config/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/build.yml'
- 'composer.json'
- 'phpunit.xml.dist'
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths: *paths

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

permissions:
contents: read

jobs:
phpunit:
name: PHP ${{ matrix.php }}
Expand All @@ -34,7 +30,7 @@ jobs:
php: [ 81, 82, 83, 84 ]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Build
Expand Down
37 changes: 15 additions & 22 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
name: Composer require checker

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

paths: &paths
- 'config/**'
- 'src/**'
- 'config/**'
- '.github/workflows/composer-require-checker.yml'
- 'composer.json'
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

name: Composer require checker
branches: ['master']
paths: *paths

permissions:
contents: read

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

jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
Expand Down
45 changes: 21 additions & 24 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
name: mutation test

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'
- 'Makefile'

paths: &paths
- 'config/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/mutation.yml'
- 'composer.json'
- 'infection.json.dist'
- 'phpunit.xml.dist'
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'
- 'Makefile'
branches: ['master']
paths: *paths

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

permissions:
contents: read

jobs:
mutation:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
Expand All @@ -44,24 +41,24 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install PHP with extensions.
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: ${{ matrix.php }}
ini-values: memory_limit=-1
coverage: pcov
tools: composer:v2

- name: Install dependencies with composer.
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
- name: Install Composer dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0

- name: Run infection
run: |
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered
vendor/bin/roave-infection-static-analysis-plugin --threads=1 --ignore-msi-with-no-mutations --only-covered
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
RABBITMQ_HOST: 127.0.0.1
Expand Down
36 changes: 16 additions & 20 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
name: static analysis

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'

paths: &paths
- 'config/**'
- 'src/**'
- 'config/**'
- '.github/workflows/static.yml'
- 'psalm*.xml'
- 'composer.json'
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'

name: static analysis
branches: ['master']
paths: *paths

permissions:
contents: read

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

jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches:
- master
- main
paths:
- '.github/**.yml'
- '.github/**.yaml'
pull_request:
paths:
paths: &paths
- '.github/**.yml'
- '.github/**.yaml'
push:
branches: ['master']
paths: *paths

permissions:
actions: read # Required by zizmor when reading workflow metadata through the API.
contents: read # Required to read workflow files.
actions: read # Required by zizmor when reading workflow metadata through the API
contents: read # Required to read workflow files

jobs:
zizmor:
Expand Down
Loading