Skip to content
Permalink
Browse files

Merge pull request #2049 from phpDocumentor/actions-try-out

  • Loading branch information...
jaapio committed Feb 24, 2019
2 parents cbc256f + 0f901d1 commit be711ff0dce758783e34a0f2aea240bfd2e66ebf
Showing with 33 additions and 26 deletions.
  1. +30 −0 .github/main.workflow
  2. +0 −20 .travis.yml
  3. +3 −1 docker-compose.yml
  4. +0 −5 docker/phpstan/Dockerfile
@@ -0,0 +1,30 @@
workflow "Qa workflow" {
on = "push"
resolves = [
"PHPStan",
"composer-require-checker",
]
}

action "composer" {
uses = "docker://composer"
secrets = ["GITHUB_TOKEN"]
args = "install --no-interaction --prefer-dist --optimize-autoloader"
}

action "PHPStan" {
uses = "docker://jaapio/github-actions:phpstan"
args = "analyse src tests --level 2 --configuration phpstan.neon"
secrets = ["GITHUB_TOKEN"]
env = {
PHP_EXTENSIONS = "php7-intl php7-xsl"
}
needs = ["composer"]
}

action "composer-require-checker" {
uses = "docker://phpga/composer-require-checker-ga"
secrets = ["GITHUB_TOKEN"]
args = "check --config-file ./composer-require-config.json composer.json"
needs = ["composer"]
}
@@ -55,26 +55,6 @@ jobs:
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

- stage: analysis
php: 7.1
name: "PHPStan"
services:
- docker
script:
- docker-compose run --rm phpstan

- stage: analysis
php: 7.1.18
name: "Composer require checker"
env:
secure: pD0swAjWY7a/i1D12K+8vqBlpl0ES6dA994+NLYYoxYrM03XnrxoSBNApuz2MSoIzKJbXq1GtYHgeVf4qcHL9jQ/PQ1igJ/wL4YrMggfy1M8JSaZ2rBDdKcyRl716dKX2bRyszJlFbkA9mE4aCa2Cqf2eMeWHzqNjrHPQ4m7iNY=
before_script:
- echo 'xdebug.max_nesting_level=1024' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys D2CCAC42F6295E7D,4AA394086372C20A
script:
- tools/composer-require-checker check --config-file $(pwd)/composer-require-config.json composer.json

- stage: release
if: repo = phpDocumentor/phpDocumentor2 AND (branch IN (develop, master) OR tag IS present)
name: Release
@@ -20,6 +20,8 @@ phpcs:
command: ["./bin/phpcs", "--standard=PSR2", "--extensions=php", "src"]

phpstan:
build: docker/phpstan
image: jaapio/github-actions:phpstan
environment:
PHP_EXTENSIONS: php7-intl php7-xsl
volumes: [".:/app"]
command: "analyse src tests --level 2 --configuration phpstan.neon"

This file was deleted.

0 comments on commit be711ff

Please sign in to comment.
You can’t perform that action at this time.