-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
gh-actions: | ||
patterns: ['actions/*'] | ||
docker: | ||
patterns: ['docker/*'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: 'php' | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.php' | ||
- '.github/workflows/php.yml' | ||
- 'composer.json' | ||
push: | ||
paths: | ||
- '**/*.php' | ||
- '.github/workflows/php.yml' | ||
- 'composer.json' | ||
|
||
jobs: | ||
cs: | ||
name: 'Check coding style' | ||
if: "!contains(github.event.commits[0].message, '[skip ci]') && !contains(github.event.commits[0].message, '[ci skip]')" | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
php-version: ["8.2","8.3"] | ||
steps: | ||
- name: 'Checkout current revision' | ||
uses: 'actions/checkout@v4' | ||
|
||
- name: 'Setup PHP' | ||
uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php-version }}' | ||
tools: 'composer:v2' | ||
extensions: 'mbstring, intl' | ||
coverage: 'none' | ||
|
||
- name: 'Discover Composer cache directory' | ||
id: 'cachedir' | ||
run: echo "path=$(composer global config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: 'Share Composer cache across runs' | ||
uses: 'actions/cache@v4' | ||
with: | ||
path: '${{ steps.cachedir.outputs.path }}' | ||
key: "composer-${{ github.job }}-${{ hashFiles('**/composer.json') }}" | ||
restore-keys: | | ||
composer-${{ github.job }}- | ||
composer- | ||
- name: 'Install dependencies with Composer' | ||
run: 'composer install --prefer-dist --no-interaction --ignore-platform-req=ext-opentelemetry' | ||
|
||
- name: 'Run PHP CodeSniffer' | ||
run: vendor/bin/phpcs -n | ||
|
||
stan: | ||
name: 'Static code analyzer' | ||
if: "!contains(github.event.commits[0].message, '[skip ci]') && !contains(github.event.commits[0].message, '[ci skip]')" | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
php-version: ["8.2","8.3"] | ||
steps: | ||
- name: 'Checkout current revision' | ||
uses: 'actions/checkout@v4' | ||
|
||
- name: 'Setup PHP' | ||
uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php-version }}' | ||
tools: 'composer:v2' | ||
extensions: 'mbstring, intl' | ||
coverage: 'none' | ||
|
||
- name: 'Discover Composer cache directory' | ||
id: 'cachedir' | ||
run: echo "path=$(composer global config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: 'Share Composer cache across runs' | ||
uses: 'actions/cache@v4' | ||
with: | ||
path: '${{ steps.cachedir.outputs.path }}' | ||
key: "composer-${{ github.job }}-${{ hashFiles('**/composer.json') }}" | ||
restore-keys: | | ||
composer-${{ github.job }}- | ||
composer- | ||
- name: 'Install dependencies with Composer' | ||
run: 'composer install --prefer-dist --no-interaction --ignore-platform-req=ext-opentelemetry' | ||
|
||
- name: 'Run PHP STAN' | ||
run: vendor/bin/phpstan analyse --no-progress --error-format=github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request_target: | ||
types: [closed] | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
description: 'Release type' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
jobs: | ||
release-job: | ||
uses: bedita/github-workflows/.github/workflows/release.yml@v1 | ||
with: | ||
main_branch: 'main' | ||
dist_branches: '["main"]' | ||
version_bump: ${{ inputs.releaseType }} |