diff --git a/.github/workflows/php-style.yml b/.github/workflows/php-style.yml index 81fdbc8..961e1c3 100644 --- a/.github/workflows/php-style.yml +++ b/.github/workflows/php-style.yml @@ -1,10 +1,20 @@ name: PHP Style -on: [push] +on: + push: + branches: + - "[0-9]+.[0-9]+" + - "[0-9]+.x" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: php-cs-fixer: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index cc70aac..e22eccf 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -5,11 +5,17 @@ on: - cron: '0 3 * * 1,3,5' workflow_dispatch: push: + paths-ignore: + - 'doc/**' + - '**.md' branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" - "feature-*" pull_request: + paths-ignore: + - 'doc/**' + - '**.md' types: [ opened, synchronize, reopened ] @@ -17,9 +23,14 @@ env: PIMCORE_PROJECT_ROOT: ${{ github.workspace }} PRIVATE_REPO: ${{ github.event.repository.private }} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: setup-matrix: runs-on: ubuntu-latest + timeout-minutes: 60 outputs: php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} matrix: ${{ steps.set-matrix.outputs.matrix }}