Separate the coding standards and static analysis workflows. #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Nightly Tests | |
on: | |
schedule: | |
# Once weekly on Mondays at 02:00 UTC. | |
# | |
# ┌───────────── minute (0 - 59) | |
# │ ┌────────── hour (0 - 23) | |
# │ │ ┌─────── day of the month (1 - 31) | |
# │ │ │ ┌──── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌─ day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
- cron: '0 2 * * 1' | |
push: | |
branches: | |
- 'develop' | |
paths: | |
- '.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-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: | |
label: | |
- 'integration' | |
php: | |
# Newest and oldest supported versions of PHP | |
- '8.4' | |
- '7.4' | |
fail-fast: false | |
with: | |
wp: 'nightly' | |
php: ${{ matrix.php }} | |
node: false |