Skip to content

Commit f2974a5

Browse files
authored
CI in GitHub Actions (#16)
1 parent c616db6 commit f2974a5

File tree

3 files changed

+53
-72
lines changed

3 files changed

+53
-72
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: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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/phpmd src,tests text dev-tools/phpmd.xml
24+
- run: dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v
25+
26+
test:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
include:
32+
- php-version: '5.6'
33+
composer-flags: '--prefer-stable --prefer-lowest'
34+
- php-version: '7.0'
35+
- php-version: '7.1'
36+
- php-version: '7.2'
37+
- php-version: '7.3'
38+
- php-version: '7.4'
39+
- php-version: '8.0'
40+
- php-version: '8.1'
41+
- php-version: '8.2'
42+
- php-version: '8.3'
43+
steps:
44+
- uses: actions/checkout@v3
45+
- uses: shivammathur/setup-php@v2
46+
with:
47+
php-version: ${{ matrix.php-version }}
48+
coverage: none
49+
- run: composer update --no-progress ${{ matrix.composer-flags }}
50+
- run: vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)