Skip to content

Commit be711ff

Browse files
authored
Merge pull request #2049 from phpDocumentor/actions-try-out
2 parents cbc256f + 0f901d1 commit be711ff

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

.github/main.workflow

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
workflow "Qa workflow" {
2+
on = "push"
3+
resolves = [
4+
"PHPStan",
5+
"composer-require-checker",
6+
]
7+
}
8+
9+
action "composer" {
10+
uses = "docker://composer"
11+
secrets = ["GITHUB_TOKEN"]
12+
args = "install --no-interaction --prefer-dist --optimize-autoloader"
13+
}
14+
15+
action "PHPStan" {
16+
uses = "docker://jaapio/github-actions:phpstan"
17+
args = "analyse src tests --level 2 --configuration phpstan.neon"
18+
secrets = ["GITHUB_TOKEN"]
19+
env = {
20+
PHP_EXTENSIONS = "php7-intl php7-xsl"
21+
}
22+
needs = ["composer"]
23+
}
24+
25+
action "composer-require-checker" {
26+
uses = "docker://phpga/composer-require-checker-ga"
27+
secrets = ["GITHUB_TOKEN"]
28+
args = "check --config-file ./composer-require-config.json composer.json"
29+
needs = ["composer"]
30+
}

.travis.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,6 @@ jobs:
5555
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
5656
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
5757

58-
- stage: analysis
59-
php: 7.1
60-
name: "PHPStan"
61-
services:
62-
- docker
63-
script:
64-
- docker-compose run --rm phpstan
65-
66-
- stage: analysis
67-
php: 7.1.18
68-
name: "Composer require checker"
69-
env:
70-
secure: pD0swAjWY7a/i1D12K+8vqBlpl0ES6dA994+NLYYoxYrM03XnrxoSBNApuz2MSoIzKJbXq1GtYHgeVf4qcHL9jQ/PQ1igJ/wL4YrMggfy1M8JSaZ2rBDdKcyRl716dKX2bRyszJlFbkA9mE4aCa2Cqf2eMeWHzqNjrHPQ4m7iNY=
71-
before_script:
72-
- echo 'xdebug.max_nesting_level=1024' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
73-
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
74-
- travis_retry php phive.phar --no-progress install --trust-gpg-keys D2CCAC42F6295E7D,4AA394086372C20A
75-
script:
76-
- tools/composer-require-checker check --config-file $(pwd)/composer-require-config.json composer.json
77-
7858
- stage: release
7959
if: repo = phpDocumentor/phpDocumentor2 AND (branch IN (develop, master) OR tag IS present)
8060
name: Release

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ phpcs:
2020
command: ["./bin/phpcs", "--standard=PSR2", "--extensions=php", "src"]
2121

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

docker/phpstan/Dockerfile

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

0 commit comments

Comments
 (0)