Skip to content

[ngx-php] Update

[ngx-php] Update #848

Workflow file for this run

name: Validate Framework
on:
pull_request:
paths:
- 'frameworks/**'
- 'scripts/validate.sh'
- 'scripts/validate-ws.py'
jobs:
detect:
runs-on: ubuntu-latest
outputs:
frameworks: ${{ steps.find.outputs.frameworks }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- id: find
run: |
frameworks=$(git diff --name-only origin/${{ github.base_ref }}...HEAD \
| grep '^frameworks/' \
| cut -d'/' -f2 \
| sort -u \
| jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "frameworks=$frameworks" >> "$GITHUB_OUTPUT"
runner-busy:
needs: detect
if: needs.detect.outputs.frameworks != '[]' && vars.RUNNER_LOCAL == 'true'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Post runner-busy notice
run: |
gh pr comment "${{ github.event.pull_request.number }}" \
--repo "${{ github.repository }}" \
--body "⏸️ Runner is currently performing local benchmark runs and is disabled for GitHub Actions, please try later or check our Discord announcements on runner state for more info."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
validate:
needs: detect
if: needs.detect.outputs.frameworks != '[]' && vars.RUNNER_LOCAL != 'true'
runs-on: self-hosted
# environment: runner # uncomment to require approval for validation runs
timeout-minutes: 30
strategy:
matrix:
framework: ${{ fromJson(needs.detect.outputs.frameworks) }}
steps:
- uses: actions/checkout@v5
- name: Validate ${{ matrix.framework }}
run: ./scripts/validate.sh "${{ matrix.framework }}"