Skip to content

Commit

Permalink
Merge pull request #9 from jdecool/github-ci
Browse files Browse the repository at this point in the history
Github CI configuration
  • Loading branch information
jdecool authored Aug 15, 2019
2 parents 9cca4b8 + d2d462d commit 060d4ef
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.yml]
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.travis-ci.yml export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Continuous Integration
on: [push]

jobs:
linter:
name: Code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: docker://composer
with:
args: install
- uses: docker://php:7.3-cli-alpine
with:
entrypoint: vendor/bin/php-cs-fixer
args: fix -v --dry-run

stan:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: docker://composer
with:
args: install
- uses: docker://php:7.3-cli-alpine
with:
entrypoint: vendor/bin/phpstan
args: analyse src -c phpstan.neon -l max

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: docker://composer
with:
args: install
- uses: docker://php:7.3-cli-alpine
with:
entrypoint: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"php-http/client-common": "^1.7",
"php-http/client-implementation": "^1.0",
"php-http/discovery": "^1.4",
"php-http/httplug": "^1.1",
"phpstan/phpstan": "^0.11.12"
"php-http/httplug": "^1.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
"php-http/guzzle6-adapter": "^1.0",
"phpstan/phpstan": "^0.11",
"phpunit/phpunit": "^8.0"
},
"autoload": {
Expand Down

0 comments on commit 060d4ef

Please sign in to comment.