Skip to content

Commit ea09869

Browse files
committedMay 14, 2020
Add dev configuration
1 parent e48d0bc commit ea09869

9 files changed

+1664
-3
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Continuous Integration
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-versions: ['7.1', '7.2', '7.3', '7.4']
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Analysing source code
12+
run: find ./src/ ./inc/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
13+
- name: Validate composer.json and composer.lock
14+
run: composer validate
15+
- name: Install dependencies
16+
run: composer install --prefer-dist --no-progress --no-suggest
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
- name: PhpUnit
22+
run: ./vendor/bin/phpunit
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
26+
if: failure()

‎.idea/php-test-framework.xml

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/php.xml

+32-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/phpunit.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/wordpress-interface.iml

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎composer.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,21 @@
88
"name": "Anton Ukhanev",
99
"email": "xedin.unknown@gmail.com"
1010
}
11-
]
11+
],
12+
"require": {
13+
"php": "^7.1"
14+
},
15+
"require-dev": {
16+
"phpunit/phpunit": "^7.0 | ^8.0"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"WpOop\\WordPress\\": "src"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"WpOop\\WordPress\\Test\\Unit\\": "tests/unit"
26+
}
27+
}
1228
}

0 commit comments

Comments
 (0)
Failed to load comments.