Skip to content

Commit 2d74eea

Browse files
committed
improved GitHub Actions workflow
1 parent a4ff22c commit 2d74eea

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/phpstan.yml renamed to .github/workflows/static-analysis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHPStan
1+
name: Static Analysis (only informative)
22

33
on:
44
push:
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
phpstan:
10+
name: PHPStan
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
- run: composer install --no-progress --prefer-dist
2323
- run: vendor/bin/tester tests -s -C
2424
- if: failure()
25-
run: for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
26-
shell: bash
25+
uses: actions/upload-artifact@v1
26+
with:
27+
name: output
28+
path: tests/PhpGenerator/output
2729

2830

2931
lowest_dependencies:
@@ -51,6 +53,6 @@ jobs:
5153
coverage: none
5254

5355
- run: composer install --no-progress --prefer-dist
54-
- run: vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src
5556
- run: wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
57+
- run: vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src
5658
- run: php coveralls.phar --verbose --config tests/.coveralls.yml

0 commit comments

Comments
 (0)