Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/reusable-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ name: Validate
on:
workflow_call:

# Permissions should be configured at the job level.
permissions: {}

jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read # To clone the repo.

strategy:
fail-fast: true
matrix:
php: ['5.4', 'latest']

name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/validate-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ on:
schedule:
- cron: '0 0 15 * *'

# Permissions should be configured at the job level.
permissions: {}

jobs:
validate:
permissions:
contents: read # To clone the repo.

# Don't run the cron job on forks.
if: ${{ github.event.repository.fork == false }}

name: Validate
uses: ./.github/workflows/reusable-validate.yml
5 changes: 5 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Permissions should be configured at the job level.
permissions: {}

jobs:
validate:
permissions:
contents: read # To clone the repo.

name: Validate
uses: ./.github/workflows/reusable-validate.yml