Skip to content

Commit

Permalink
Separate the coding standards and static analysis workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 21, 2024
1 parent 57f2e74 commit 02c28ea
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ on:
- '**'
workflow_dispatch:

permissions: {}

jobs:
test:
name: ${{ matrix.label }}
permissions:
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-coding-standards.yml@trunk
strategy:
matrix:
label:
- PHP
php:
# Newest and oldest supported versions of PHP
- '8.4'
- '7.4'
fail-fast: false
with:
php: ${{ matrix.php }}
25 changes: 24 additions & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,46 @@ on:
- '.github/workflows/nightly-tests.yml'
workflow_dispatch:

permissions: {}

jobs:
standards:
name: Nightly ${{ matrix.label }}
permissions:
contents: read
strategy:
matrix:
label:
- 'standards'
php:
# Newest supported version of PHP
- '8.4'
fail-fast: false
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-coding-standards.yml@trunk
with:
php: ${{ matrix.php }}

static-analysis:
name: Nightly ${{ matrix.label }}
permissions:
contents: read
strategy:
matrix:
label:
- 'static analysis'
php:
# Newest and oldest supported versions of PHP
- '8.4'
- '7.4'
fail-fast: false
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-coding-standards.yml@trunk
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-static-analysis.yml@trunk
with:
php: ${{ matrix.php }}

integration:
name: Nightly ${{ matrix.label }}
permissions:
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-integration-tests.yml@trunk
strategy:
matrix:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: Static Analysis
on:
push:
branches:
- 'develop'
- 'trunk'
paths:
- '.github/workflows/static-analysis.yml'
- '**.php'
- 'composer.json'
- 'phpstan.neon.dist'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/static-analysis.yml'
- '**.php'
- 'composer.json'
- 'phpstan.neon.dist'
workflow_dispatch:

permissions: {}

jobs:
test:
name: ${{ matrix.label }}
permissions:
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-static-analysis.yml@trunk
strategy:
matrix:
label:
- 'PHP'
php:
# Newest and oldest supported versions of PHP
- '8.4'
- '7.4'
fail-fast: false
with:
php: ${{ matrix.php }}

0 comments on commit 02c28ea

Please sign in to comment.