Skip to content

Commit

Permalink
[FEATURE] Add relativeProjectRootPath to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed May 22, 2020
1 parent abc113b commit d7aac77
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 161 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/php_cs_fixer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,45 @@ on:
pull_request:
branches:
- master
- 2.0

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
# dont run jobs on forks, because we are not allowed to commit
if: github.event.pull_request.draft == false && github.repository == 'TYPO3/Surf'

steps:
- uses: actions/checkout@v2.0.0
- id: composer-cache
with:
ref: ${{ github.head_ref }}

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1

- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
coverage: none # disable xdebug, pcov

- name: Cache Composer Dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: shivammathur/setup-php@v1
with:
php-version: 7.2
coverage: none
restore-keys: ${{ runner.os }}-composer-

- run: composer install --no-progress
- name: Install Composer Dependencies
run: composer install --no-progress

- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix --config=./.php_cs
run: vendor/bin/php-cs-fixer fix --config=./.php_cs --diff

- uses: stefanzweifel/git-auto-commit-action@v2.5.0
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes
branch: "master"
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 4 additions & 5 deletions Documentation/DeploymentFlow/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ If you like to add your own tasks to a specific stage of the flow, you can just
// Add tasks that shall be executed before the given stage
$workflow->beforeStage('YourTask', 'cleanup');

// Add tasks that shall be executed before the given task
$workflow->beforeTask(AnotherTask::class, 'YourTask');
// Add tasks that shall be executed before the given task
$workflow->beforeTask(AnotherTask::class, 'YourTask');

// Add tasks that shall be executed after the given task
$workflow->afterTask(AnotherTask::class, 'YourTask');
// Add tasks that shall be executed after the given task
$workflow->afterTask(AnotherTask::class, 'YourTask');

If you like to remove certain tasks from the flow, just do it like that::

Expand All @@ -94,4 +94,3 @@ If you like to remove certain tasks from the flow, just do it like that::

// Only remove the task for a specific application
$workflow->removeTask(FlushCachesTask::class, $application);

0 comments on commit d7aac77

Please sign in to comment.