Skip to content

Commit 2918a7c

Browse files
Merge pull request #42 from peckadesign/github_actions
Sjednocení Github Actions napříč organizací
2 parents 161ce7a + b1d900a commit 2918a7c

File tree

3 files changed

+26
-38
lines changed

3 files changed

+26
-38
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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.1, 7.2, 7.3, 7.4, 8.0 ]
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+
- run: make run-tests

.github/workflows/tests.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
test:
1+
composer:
2+
composer validate
3+
composer update --no-interaction --prefer-dist
4+
5+
run-tests:
26
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Success/
37
./vendor/bin/phpcs --standard=src/PeckaCodingStandardStrict/ruleset.xml tests/Success/
48
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Arrays/TrailingArrayComma.php | tests/errorNumber.sh 1

0 commit comments

Comments
 (0)