mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 14:04:34 +00:00
0.9.6.19 test supported PHP branches and all admin JS
This commit is contained in:
15
.github/workflows/lint.yml
vendored
15
.github/workflows/lint.yml
vendored
@@ -5,8 +5,12 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syntax:
|
php-syntax:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php-version: ['8.2', '8.3', '8.4', '8.5']
|
||||||
steps:
|
steps:
|
||||||
- name: Repository auschecken
|
- name: Repository auschecken
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -14,7 +18,7 @@ jobs:
|
|||||||
- name: PHP installieren
|
- name: PHP installieren
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.2'
|
php-version: ${{ matrix.php-version }}
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: PHP Syntax pruefen
|
- name: PHP Syntax pruefen
|
||||||
@@ -36,6 +40,12 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
script-syntax:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Repository auschecken
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Admin JavaScript Syntax pruefen
|
- name: Admin JavaScript Syntax pruefen
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -43,6 +53,7 @@ jobs:
|
|||||||
sed -n '/<script>/,/<\/script>/p' template/admin_tabs.tpl | sed '1d;$d' > /tmp/bratonien-admin-tabs.js
|
sed -n '/<script>/,/<\/script>/p' template/admin_tabs.tpl | sed '1d;$d' > /tmp/bratonien-admin-tabs.js
|
||||||
node --check /tmp/bratonien-admin-tabs.js
|
node --check /tmp/bratonien-admin-tabs.js
|
||||||
node --check js/nc_connector_edit_v2.js
|
node --check js/nc_connector_edit_v2.js
|
||||||
|
node --check js/nc_connector_source_ui.js
|
||||||
|
|
||||||
- name: Python Syntax pruefen
|
- name: Python Syntax pruefen
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user