-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from chialab/relax-cakephp-constraint
Relax cakephp constraint
- Loading branch information
Showing
3 changed files
with
108 additions
and
2 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 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
# Maintain dependencies for Composer | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,84 @@ | ||
name: 'Run tests' | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.php' | ||
- '.github/workflows/*' | ||
push: | ||
paths: | ||
- '**/*.php' | ||
- '.github/workflows/*' | ||
|
||
jobs: | ||
cs: | ||
name: 'Check coding style' | ||
runs-on: 'ubuntu-22.04' | ||
|
||
steps: | ||
- name: 'Checkout current revision' | ||
uses: 'actions/checkout@v3' | ||
|
||
- name: 'Setup PHP' | ||
uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '8.1' | ||
tools: 'composer' | ||
extensions: 'mbstring, intl' | ||
coverage: 'none' | ||
|
||
- name: 'Discover Composer cache directory' | ||
id: 'cachedir' | ||
run: 'echo "::set-output name=path::$(composer global config cache-dir)"' | ||
|
||
- name: 'Share Composer cache across runs' | ||
uses: 'actions/cache@v3' | ||
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' | ||
|
||
- name: 'Run PHP CodeSniffer' | ||
run: 'composer run-script cs-check -- -n' | ||
|
||
stan: | ||
name: 'Static code analyzer' | ||
runs-on: 'ubuntu-22.04' | ||
continue-on-error: true | ||
|
||
steps: | ||
- name: 'Checkout current revision' | ||
uses: 'actions/checkout@v3' | ||
|
||
- name: 'Setup PHP' | ||
uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '8.1' | ||
tools: 'composer, phpstan' | ||
extensions: 'mbstring, intl' | ||
coverage: 'none' | ||
|
||
- name: 'Discover Composer cache directory' | ||
id: 'cachedir' | ||
run: 'echo "::set-output name=path::$(composer global config cache-dir)"' | ||
|
||
- name: 'Share Composer cache across runs' | ||
uses: 'actions/cache@v3' | ||
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' | ||
|
||
- name: 'Run PHP STAN' | ||
run: | | ||
phpstan analyse --no-progress src |
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