feat: update block html with processor while block has not inner html #1326
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: Code Lint | |
on: | |
pull_request: | |
types: [opened, synchronize, ready_for_review] | |
workflow_dispatch: | |
# Cancels all previous workflow runs for pull requests that have not completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name for pull requests | |
# or the commit hash for any other events. | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
jslint: | |
name: JavaScript coding standards | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: ${{ github.repository == 'blockeraai/blockera' || github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/setup-node | |
- name: Running the lint:js | |
run: npm run lint:js | |
stylelint: | |
name: CSS coding standards | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: ${{ github.repository == 'blockeraai/blockera' || github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/setup-node | |
- name: Running the lint:css | |
run: npm run lint:css | |
phpcs: | |
name: PHP coding standards | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: ${{ github.repository == 'blockeraai/blockera' || github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP Composer install dependencies | |
uses: ./.github/setup-php | |
- name: Make Composer packages available globally | |
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH | |
- name: Run PHPCS on all Blockera files | |
id: phpcs-blockera | |
run: | | |
pwd | |
mkdir -p .cache | |
phpcs --report-full --report-checkstyle=./.cache/phpcs-report.xml --standard=phpcs.xml | |
- name: Show PHPCS results in PR | |
if: ${{ always() && steps.phpcs-blockera.outcome == 'failure' }} | |
run: cs2pr ./.cache/phpcs-report.xml | |
- name: Ensure version-controlled files are not modified during the tests | |
run: git diff --exit-code |