Release 3.1.5 #101
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: VIP Scans and other code checks | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
workflow_call: | |
workflow_dispatch: | |
inputs: | |
debug_enabled_code_check: | |
type: boolean | |
description: 'Enable "tmate" debugging for the code check' | |
required: false | |
default: false | |
jobs: | |
check: | |
name: Check the code | |
runs-on: ubuntu-latest | |
container: | |
image: publishpress/dev-workspace-terminal:future-free | |
options: -v ${{ github.workspace }}:/project --workdir="/project" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup tmate session for Debugging, if inputs.debug_enabled_code_check is true | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ inputs.debug_enabled_code_check }} | |
timeout-minutes: 10 | |
with: | |
detached: true | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Composer install | |
run: composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs | |
- name: Fixes scripts permissions | |
run: chmod +x /project/dev-workspace/docker/scripts/ppbuild | |
- name: Build the package to a dir | |
run: composer build:dir | |
- name: PHPLint - Check PHP syntax errors | |
run: composer check:lint | |
- name: PHPCS - Check VIP scan and code standards | |
run: composer check:phpcs |