Added static check and GitHub workflow for it #10
Workflow file for this run
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
name: test-php-static-check | |
on: | |
pull_request: | |
paths-ignore: | |
- "**/*.asciidoc" | |
- "**/*.md" | |
- "**/*.png" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.asciidoc" | |
- "**/*.md" | |
- "**/*.png" | |
permissions: | |
contents: read | |
## Concurrency only allowed in the main branch. | |
## So old builds running for old commits within the same Pull Request are cancelled | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
generate-php-versions: | |
uses: ./.github/workflows/generate-php-versions.yml | |
static-check: | |
runs-on: ubuntu-latest | |
needs: generate-php-versions | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.generate-php-versions.outputs.php-versions) }} | |
env: | |
PHP_VERSION: ${{ matrix.php-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Invoke test_php_static_check.sh | |
run: ./tools/build/test_php_static_check.sh --php_versions "${PHP_VERSION}" |