Skip to content

Commit 96e1102

Browse files
Merge pull request #14 from peckadesign/github_actions
Nasazení Github Actions
2 parents df62565 + ac62c1b commit 96e1102

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

.github/workflows/php-package-ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Package CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
checks:
8+
name: Checks
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php: [ 7.0, 7.1 ]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php }}
18+
19+
- run: make composer
20+
21+
- if: matrix.php == '7.1'
22+
run: make phpstan
23+
24+
- run: make run-tests

.travis.yml

-17
This file was deleted.

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
composer:
2+
composer validate
3+
composer update --no-interaction --prefer-dist
4+
5+
phpstan:
6+
vendor/bin/phpstan analyse -l 5 -c phpstan.neon src/
7+
8+
run-tests:
9+
vendor/bin/tester tests

0 commit comments

Comments
 (0)