Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 0c603fd

Browse files
committed
Remove duplicate integration test (required to trigger CI) since github handle only one workflow file
1 parent ccd806d commit 0c603fd

File tree

3 files changed

+17
-34
lines changed

3 files changed

+17
-34
lines changed

.github/integration.workflow

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

.github/main.workflow

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ workflow "Testing" {
44
"phpcs",
55
"phpstan",
66
"codecoverage",
7-
"integration-test-run",
87
]
98
}
109

@@ -38,21 +37,27 @@ action "codecoverage" {
3837
args = "-f clover-report.xml"
3938
}
4039

41-
action "integration-test-prepare" {
40+
workflow "Integration test" {
41+
resolves = [
42+
"test",
43+
]
44+
on = "push"
45+
}
46+
47+
action "prepare" {
4248
uses = "docker://bash"
4349
runs = "sh -l -c"
4450
args = ["sed -i 's/{GITHUB_SHA}/'\"$GITHUB_SHA\"'/' $GITHUB_WORKSPACE/tests-integration/composer.json"]
45-
#args = ["REPLACEMENT=$(echo '/{GITHUB_SHA}/'$GITHUB_SHA'/g') && sed $REPLACEMENT tests-integration/composer.json"]
4651
}
4752

48-
action "integration-test-composer-install" {
53+
action "composer-install" {
4954
uses = "docker://composer"
50-
needs = ["integration-test-prepare"]
55+
needs = ["prepare"]
5156
args = "install --working-dir tests-integration"
5257
}
5358

54-
action "integration-test-run" {
59+
action "test" {
5560
uses = "docker://php:7.2"
56-
needs = ["integration-test-composer-install"]
57-
args = "tests-integration/vendor/bin/phpstan analyse --no-progress --error-format=junit src"
61+
needs = ["composer-install"]
62+
args = "tests-integration/vendor/bin/phpstan analyse --configuration tests-integration/phpstan.neon.dist --no-progress --error-format=junit src"
5863
}

tests-integration/phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src

0 commit comments

Comments
 (0)