--- /dev/null
+{
+ "problemMatcher": [
+ {
+ "owner": "node -c",
+ "pattern": [
+ {
+ "regexp": "^(./\\S+):(\\d+) - (.*)$",
+ "file": 1,
+ "line": 2,
+ "message": 3
+ }
+ ]
+ }
+ ]
+}
{
"problemMatcher": [
- {
- "owner": "php -l",
- "pattern": [
- {
- "regexp": "^\\s*(PHP\\s+)?([a-zA-Z\\s]+):\\s+(.*)\\s+in\\s+(\\S+)\\s+on\\s+line\\s+(\\d+)$",
- "file": 4,
- "line": 5,
- "message": 3
- }
- ]
- }
+ {
+ "owner": "php -l",
+ "pattern": [
+ {
+ "regexp": "^\\s*(PHP\\s+)?([a-zA-Z\\s]+):\\s+(.*)\\s+in\\s+(\\S+)\\s+on\\s+line\\s+(\\d+)$",
+ "file": 4,
+ "line": 5,
+ "message": 3
+ }
+ ]
+ }
]
}
jobs:
php:
- name: Run PHP CodeSniffer
+ name: PHP CodeSniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
--- /dev/null
+name: JavaScript
+
+on:
+ push:
+ branches:
+ - "5.2"
+ - "5.3"
+ - master
+ pull_request:
+
+jobs:
+ syntax:
+ name: "Check Syntax"
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ steps:
+ - name: Set up node.js
+ uses: actions/setup-node@v1
+ with:
+ node-version: "12"
+ - uses: actions/checkout@v2
+ - run: echo "::add-matcher::.github/javascript-syntax.json"
+ - name: Remove files to be ignored
+ run: |
+ true
+ - run: |
+ ! find . -type f -name '*.js' -exec node -c '{}' \; 2>&1 \
+ |awk 'BEGIN {m=0} /(.js):[0-9]+$/ {m=1; printf "%s - ",$0} m==1 && /^SyntaxError/ { m=0; print }' \
+ |sed "s@$(pwd)@.@" \
+ |grep '^'
+++ /dev/null
-name: PHP Syntax Check
-
-on:
- push:
- branches:
- - "5.2"
- - "5.3"
- - master
- pull_request:
-
-jobs:
- check:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- php:
- - '7.2'
- - '7.3'
- - '7.4'
- - '8.0'
- steps:
- - name: Set up PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- - uses: actions/checkout@v2
- - run: echo "::add-matcher::.github/php-syntax.json"
- - name: Remove files to be ignored
- run: |
- true
- - run: |
- ! find . -type f -name '*.php' -exec php -l '{}' \; 2>&1 |grep -v '^No syntax errors detected'
--- /dev/null
+name: PHP
+
+on:
+ push:
+ branches:
+ - "5.2"
+ - "5.3"
+ - master
+ pull_request:
+
+jobs:
+ syntax:
+ name: "Check Syntax (${{ matrix.php }})"
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php:
+ - '7.2'
+ - '7.3'
+ - '7.4'
+ - '8.0'
+ steps:
+ - name: Set up PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ - uses: actions/checkout@v2
+ - run: echo "::add-matcher::.github/php-syntax.json"
+ - name: Remove files to be ignored
+ run: |
+ true
+ - run: |
+ ! find . -type f -name '*.php' -exec php -l '{}' \; 2>&1 |grep -v '^No syntax errors detected'