feat: theme EditorJS through its own custom properties #48
Workflow file for this run
This file contains hidden or 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 quality | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| install: | |
| uses: ./.github/workflows/install.yml | |
| mago-fmt: | |
| name: Mago - check code styling | |
| needs: install | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/carthage-software/mago:1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - name: Check formatting | |
| run: mago --config=./mago.dist.toml --colors=always fmt --check | |
| - name: Show formatting diff | |
| if: failure() | |
| run: mago --config=./mago.dist.toml --colors=always fmt --dry-run | |
| mago-lint: | |
| name: Mago - lint | |
| needs: install | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: ghcr.io/carthage-software/mago:1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: mago --config=./mago.dist.toml --colors=always lint --reporting-format=rich --minimum-fail-level=warning | |
| mago-analyse: | |
| name: Mago - analyse | |
| needs: install | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/carthage-software/mago:1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: mago --config=./mago.dist.toml --colors=always analyse --reporting-format=rich --minimum-fail-level=warning | |
| mago-guard: | |
| name: Mago - guard | |
| needs: install | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: ghcr.io/carthage-software/mago:1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: mago --config=./mago.dist.toml --colors=always guard --reporting-format=rich --minimum-fail-level=warning | |
| phpcs: | |
| name: PHP_CodeSniffer - check code styling | |
| needs: install | |
| runs-on: ubuntu-latest | |
| container: sumocoders/cli-tools-php85:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: php vendor/bin/phpcs --colors --report-full -s | |
| phpstan: | |
| name: PHPStan - check for bugs | |
| needs: install | |
| runs-on: ubuntu-latest | |
| container: sumocoders/cli-tools-php85:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: php vendor/bin/phpstan analyse --memory-limit=-1 --no-progress --no-interaction | |
| twig-cs-fixer: | |
| name: Twig-CS-Fixer - check code styling | |
| needs: install | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: sumocoders/cli-tools-php85:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: vendor | |
| path: vendor | |
| - run: php vendor/bin/twig-cs-fixer --no-interaction lint templates/ | |
| stylelint: | |
| name: Stylelint - check code styling | |
| needs: install | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: sumocoders/stylelint:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: stylelint --color . | |
| standardjs: | |
| name: StandardJS - check code styling | |
| needs: install | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: sumocoders/standardjs:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: standard . |