Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 1.0
|
|
- 1.1
|
|
- 1.2
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
codeQuality:
|
|
runs-on: ubuntu-latest
|
|
name: PHP
|
|
steps:
|
|
- name: Checkout changes
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install PHP and PHP Code Sniffer
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.2
|
|
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
|
|
tools: phpcs
|
|
|
|
- name: Run code quality checks (on push)
|
|
if: github.event_name == 'push'
|
|
run: ./.github/workflows/utilities/phpcs-push ${{ github.sha }}
|
|
|
|
- name: Run code quality checks (on pull request)
|
|
if: github.event_name == 'pull_request'
|
|
run: ./.github/workflows/utilities/phpcs-pr ${{ github.base_ref }}
|
|
codeQualityJS:
|
|
runs-on: ubuntu-latest
|
|
name: JavaScript
|
|
steps:
|
|
- name: Checkout changes
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install Node dependencies for System Module
|
|
working-directory: ./modules/system
|
|
run: npm install
|
|
|
|
- name: Run code quality checks on System Module
|
|
working-directory: ./modules/system
|
|
run: npx eslint .
|
|
|
|
- name: Install Node dependencies for Backend Module
|
|
working-directory: ./modules/backend
|
|
run: npm install
|
|
|
|
- name: Run code quality checks on Backend Module
|
|
working-directory: ./modules/backend
|
|
run: npx eslint .
|