Skip to content

Commit 3724cfc

Browse files
authored
CI in GitHub Actions (#12)
1 parent 2bd63d7 commit 3724cfc

File tree

3 files changed

+54
-73
lines changed

3 files changed

+54
-73
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ insert_final_newline = true
77
indent_style = space
88
indent_size = 4
99
trim_trailing_whitespace = true
10+
11+
[*.yaml]
12+
indent_size = 2

.github/workflows/ci.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
jobs:
8+
analyse:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: '7.4'
15+
coverage: none
16+
tools: composer:v1
17+
- run: composer global require hirak/prestissimo
18+
- run: composer update --no-progress
19+
- run: composer update --no-progress --working-dir=dev-tools
20+
- run: composer info --direct --working-dir=dev-tools | sort
21+
- run: composer validate --strict
22+
- run: composer normalize --working-dir=dev-tools ../composer.json --dry-run
23+
- run: dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json
24+
- run: dev-tools/vendor/bin/phpmd src,tests text phpmd.xml
25+
- run: dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v
26+
27+
test:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include:
33+
- php-version: '5.6'
34+
composer-flags: '--prefer-stable --prefer-lowest'
35+
- php-version: '7.0'
36+
- php-version: '7.1'
37+
- php-version: '7.2'
38+
- php-version: '7.3'
39+
- php-version: '7.4'
40+
- php-version: '8.0'
41+
- php-version: '8.1'
42+
- php-version: '8.2'
43+
- php-version: '8.3'
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: shivammathur/setup-php@v2
47+
with:
48+
php-version: ${{ matrix.php-version }}
49+
coverage: none
50+
- run: composer update --no-progress ${{ matrix.composer-flags }}
51+
- run: vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)