Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Enhancement: Synchronize with ergebnis/php-library-template
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jun 25, 2020
1 parent 65a793f commit a94fae1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#target-branch
# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- commit-message:
include: "scope"
prefix: "Build"
prefix: "composer"
directory: "/"
labels:
- "dependency"
open-pull-requests-limit: 10
package-ecosystem: "composer"
schedule:
interval: "daily"
versioning-strategy: "increase"

- commit-message:
include: "scope"
prefix: "Build"
prefix: "github-actions"
directory: "/"
labels:
- "dependency"
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on: # yamllint disable-line rule:truthy
env:
MIN_COVERED_MSI: 95
MIN_MSI: 95
REQUIRED_PHP_EXTENSIONS: "mbstring"
PHP_EXTENSIONS: "mbstring"

jobs:
coding-standards:
Expand All @@ -29,7 +29,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Lint YAML files"
uses: "ibiqlik/action-yamllint@v1"
Expand All @@ -42,7 +42,7 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Validate composer.json and composer.lock"
Expand Down Expand Up @@ -105,13 +105,13 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
Expand Down Expand Up @@ -157,13 +157,13 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
Expand Down Expand Up @@ -235,13 +235,13 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Determine composer cache directory"
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
Expand Down Expand Up @@ -404,7 +404,8 @@ jobs:
github.event.action == 'reopened' ||
github.event.action == 'synchronize'
) && (
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'Build(deps-dev)')) ||
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) ||
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) ||
(github.actor == 'ergebnis-bot' && github.event.pull_request.title == 'Enhancement: Update license year') ||
(github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge'))
)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/renew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
- cron: "1 0 1 1 *"

env:
REQUIRED_PHP_EXTENSIONS: "mbstring"
PHP_EXTENSIONS: "mbstring"

jobs:
license:
Expand All @@ -25,13 +25,13 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/[email protected].0"
uses: "actions/[email protected].1"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"

- name: "Validate composer.json and composer.lock"
Expand Down

0 comments on commit a94fae1

Please sign in to comment.