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 021722a commit 5ed2c5a
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/coding-standard.yml

This file was deleted.

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.0.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 5ed2c5a

Please sign in to comment.