Skip to content

Commit

Permalink
Run only relevant workflows
Browse files Browse the repository at this point in the history
The downside of this is that we will have to tweak the settings so that
no job is required anymore.
The upside is that builds should be faster, and less resource-intensive.
  • Loading branch information
greg0ire committed Oct 15, 2022
1 parent 13d1c7b commit cacdc56
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/coding-standards.yml
@@ -0,0 +1,27 @@
name: "Coding Standards"

on:
pull_request:
branches:
- "*.x"
paths:
- .github/workflows/coding-standards.yml
- bin/**
- composer.*
- lib/**
- phpcs.xml.dist
- tests/**
push:
branches:
- "*.x"
paths:
- .github/workflows/coding-standards.yml
- bin/**
- composer.*
- lib/**
- phpcs.xml.dist
- tests/**

jobs:
coding-standards:
uses: "doctrine/.github/.github/workflows/coding-standards.yml@2.1.0"
14 changes: 14 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -4,9 +4,23 @@ on:
pull_request:
branches:
- "*.x"
paths:
- .github/workflows/continuous-integration.yml
- ci/**
- composer.*
- lib/**
- phpunit.xml.dist
- tests/**
push:
branches:
- "*.x"
paths:
- .github/workflows/continuous-integration.yml
- ci/**
- composer.*
- lib/**
- phpunit.xml.dist
- tests/**

env:
fail-fast: true
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/phpbench.yml
Expand Up @@ -5,9 +5,21 @@ on:
pull_request:
branches:
- "*.x"
paths:
- .github/workflows/phpbench.yml
- composer.*
- lib/**
- phpbench.json
- tests/**
push:
branches:
- "*.x"
paths:
- .github/workflows/phpbench.yml
- composer.*
- lib/**
- phpbench.json
- tests/**

env:
fail-fast: true
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/static-analysis.yml
Expand Up @@ -5,9 +5,23 @@ on:
pull_request:
branches:
- "*.x"
paths:
- .github/workflows/static-analysis.yml
- composer.*
- lib/**
- phpstan*
- psalm*
- tests/**
push:
branches:
- "*.x"
paths:
- .github/workflows/static-analysis.yml
- composer.*
- lib/**
- phpstan*
- psalm*
- tests/**

jobs:
static-analysis-phpstan:
Expand Down

0 comments on commit cacdc56

Please sign in to comment.