Skip to content

Single artifact coverage #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
# “At 17:45 on Friday.”
- cron: '45 17 * * 5'

jobs:
build:
Expand All @@ -28,14 +32,15 @@ jobs:

- name: Run test suite
run: |
mkdir ./coverage
php -v
php -v > ./coverage/version-php.txt
./vendor/bin/phpunit --version > ./coverage/version-phpunit.txt
./vendor/bin/phpunit --configuration ./phpunit-${{ matrix.php-version }}.xml --coverage-clover ./coverage/coverage.clover --coverage-html ./coverage/html/
mkdir -p ./coverage/php-${{ matrix.php-version }}
./vendor/bin/phpunit --configuration ./phpunit-${{ matrix.php-version }}.xml --coverage-clover ./coverage/php-${{ matrix.php-version }}/coverage.clover --coverage-html ./coverage/php-${{ matrix.php-version }}/html/

- name: Get current date/time
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d-%H%M')"

- name: Save coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-php${{ matrix.php-version }}
path: ./coverage/
name: coverage_php-array-to-xml_${{ steps.date.outputs.date }}
path: ./coverage