Skip to content
Closed
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
10 changes: 7 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Too noisy. See https://github.community/t/increase-if-necessary-for-github-actions-in-dependabot/179581
open-pull-requests-limit: 0
interval: "weekly"
cooldown:
default-days: 7
ignore:
- dependency-name: "yiisoft/*"

# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
cooldown:
default-days: 7
versioning-strategy: increase-if-necessary
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,34 @@ on:

name: build

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

permissions:
contents: read
jobs:
detect-source:
name: Detect PHP source
runs-on: ubuntu-latest
outputs:
has-source: ${{ steps.source.outputs.has-source }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- id: source
run: |
if [ -n "$(find src -type f -name '*.php' -print -quit 2>/dev/null)" ]; then
echo "has-source=true" >> "$GITHUB_OUTPUT"
else
echo "has-source=false" >> "$GITHUB_OUTPUT"
fi

phpunit:
needs: detect-source
if: ${{ needs.detect-source.outputs.has-source == 'true' }}
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
with:
os: >-
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,34 @@ on:

name: Composer require checker

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

permissions:
contents: read
jobs:
detect-source:
name: Detect PHP source
runs-on: ubuntu-latest
outputs:
has-source: ${{ steps.source.outputs.has-source }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- id: source
run: |
if [ -n "$(find src -type f -name '*.php' -print -quit 2>/dev/null)" ]; then
echo "has-source=true" >> "$GITHUB_OUTPUT"
else
echo "has-source=false" >> "$GITHUB_OUTPUT"
fi

composer-require-checker:
needs: detect-source
if: ${{ needs.detect-source.outputs.has-source == 'true' }}
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
with:
os: >-
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,34 @@ on:

name: mutation test

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

permissions:
contents: read
jobs:
detect-source:
name: Detect PHP source
runs-on: ubuntu-latest
outputs:
has-source: ${{ steps.source.outputs.has-source }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- id: source
run: |
if [ -n "$(find src -type f -name '*.php' -print -quit 2>/dev/null)" ]; then
echo "has-source=true" >> "$GITHUB_OUTPUT"
else
echo "has-source=false" >> "$GITHUB_OUTPUT"
fi

mutation:
needs: detect-source
if: ${{ needs.detect-source.outputs.has-source == 'true' }}
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
with:
os: >-
Expand Down
30 changes: 28 additions & 2 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,37 @@ on:

name: rector

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

permissions:
contents: read
jobs:
detect-source:
name: Detect PHP source
runs-on: ubuntu-latest
outputs:
has-source: ${{ steps.source.outputs.has-source }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- id: source
run: |
if [ -n "$(find src -type f -name '*.php' -print -quit 2>/dev/null)" ]; then
echo "has-source=true" >> "$GITHUB_OUTPUT"
else
echo "has-source=false" >> "$GITHUB_OUTPUT"
fi

rector:
needs: detect-source
if: ${{ needs.detect-source.outputs.has-source == 'true' }}
permissions:
contents: write # Required by the reusable Rector workflow to commit fixes to same-repository branches.
uses: yiisoft/actions/.github/workflows/rector.yml@master
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
os: >-
['ubuntu-latest']
Expand Down
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
22 changes: 22 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GitHub Actions Security Analysis with zizmor 🌈

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

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

jobs:
zizmor:
uses: yiisoft/actions/.github/workflows/zizmor.yml@master
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "yiisoft/_____",
"name": "yiisoft/sockets",
"type": "library",
"description": "_____",
"description": "Socket abstractions for Yii",
"keywords": [
"_____"
"sockets"
],
"homepage": "https://www.yiiframework.com/",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/_____/issues?state=open",
"issues": "https://github.com/yiisoft/sockets/issues?state=open",
"forum": "https://www.yiiframework.com/forum/",
"wiki": "https://www.yiiframework.com/wiki/",
"irc": "ircs://irc.libera.chat:6697/yii",
"chat": "https://t.me/yii3en",
"source": "https://github.com/yiisoft/_____"
"source": "https://github.com/yiisoft/sockets"
},
"funding": [
{
Expand All @@ -40,12 +40,12 @@
},
"autoload": {
"psr-4": {
"Yiisoft\\_____\\": "src"
"Yiisoft\\Sockets\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Yiisoft\\_____\\Tests\\": "tests"
"Yiisoft\\Sockets\\Tests\\": "tests"
}
},
"config": {
Expand Down
Loading