Skip to content

Commit

Permalink
Try GitHub actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Feb 2, 2021
1 parent 6a6cae8 commit 7487b51
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ jobs:
COVERALLS_PARALLEL: true
run: php coveralls.phar -v

- name: "Artifact"
- name: "Compress artifact"
run: zip -r build/logs.zip build/logs -x build/logs/clover.xml

- name: "Upload artifact"
uses: actions/upload-artifact@v2
with:
name: "coverage-${{ matrix.php-version }}"
path: |
build/logs/
!build/logs/clover.xml
name: "coverage-${{ matrix.php-version }}.zip"
path: build/logs.zip

coverage:
name: "Coverage"
Expand Down Expand Up @@ -101,10 +102,11 @@ jobs:
- name: "Metrics"
run: php phpmetrics.phar --report-html=build/logs/ src/ --git --junit=build/logs/junit.xml

- name: "Artifact"
- name: "Compress artifact"
run: zip -r build/logs.zip build/logs -x build/logs/junit.xml

- name: "Upload artifact"
uses: actions/upload-artifact@v2
with:
name: "metrics"
path: |
build/logs/
!build/logs/junit.xml
name: "metrics.zip"
path: build/logs.zip

0 comments on commit 7487b51

Please sign in to comment.