From cb096372413123390999da44f808b31a68ec9919 Mon Sep 17 00:00:00 2001
From: Roel <10514742+rboonzaijer@users.noreply.github.com>
Date: Sat, 11 Jun 2022 20:56:30 +0200
Subject: [PATCH 1/4] Try to have one artifact with coverages from all php
versions
---
.github/workflows/tests.yml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1db8ab7..5b1b50d 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -28,14 +28,14 @@ jobs:
- name: Run test suite
run: |
- mkdir ./coverage
+ mkdir -p ./coverage/php-${{ matrix.php-version }}
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/
+ php -v > ./coverage/php-${{ matrix.php-version }}/php.txt
+ ./vendor/bin/phpunit --version > ./coverage/php-${{ matrix.php-version }}/phpunit.txt
+ ./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: Save coverage results
uses: actions/upload-artifact@v3
with:
- name: coverage-php${{ matrix.php-version }}
- path: ./coverage/
+ name: coverage
+ path: ./coverage
From c80224e9d27aa295ca5319aa2fe2e8ccb2bae610 Mon Sep 17 00:00:00 2001
From: Roel <10514742+rboonzaijer@users.noreply.github.com>
Date: Sat, 11 Jun 2022 21:26:02 +0200
Subject: [PATCH 2/4] test each week + use datetime in filename for coverage
---
.github/workflows/tests.yml | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 5b1b50d..953430e 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -3,6 +3,10 @@ name: Tests
on:
push:
pull_request:
+ workflow_dispatch:
+ schedule:
+ # “At 17:45 on Friday.”
+ - cron: '45 17 * * 5'
jobs:
build:
@@ -29,13 +33,14 @@ jobs:
- name: Run test suite
run: |
mkdir -p ./coverage/php-${{ matrix.php-version }}
- php -v
- php -v > ./coverage/php-${{ matrix.php-version }}/php.txt
- ./vendor/bin/phpunit --version > ./coverage/php-${{ matrix.php-version }}/phpunit.txt
./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
+ name: coverage_php-array-to-xml_${{ steps.date.outputs.date }}
path: ./coverage
From db98a88c588ae2d18f6bff81814ccaf4a4a2ea0b Mon Sep 17 00:00:00 2001
From: Roel <10514742+rboonzaijer@users.noreply.github.com>
Date: Sat, 11 Jun 2022 21:29:04 +0200
Subject: [PATCH 3/4] test php 8.2
---
.github/workflows/tests.yml | 2 +-
phpunit-8.2.xml | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
create mode 100644 phpunit-8.2.xml
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 953430e..defe6e8 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
+ php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
diff --git a/phpunit-8.2.xml b/phpunit-8.2.xml
new file mode 100644
index 0000000..528ae91
--- /dev/null
+++ b/phpunit-8.2.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+ ./src
+
+
+ ./vendor
+ ./tests
+
+
+
+
+ ./tests/
+
+
+
From 025f6de3b485dd2e32c56ffc629854761e5d6048 Mon Sep 17 00:00:00 2001
From: Roel <10514742+rboonzaijer@users.noreply.github.com>
Date: Sat, 11 Jun 2022 21:36:52 +0200
Subject: [PATCH 4/4] remove test for php 8.2-nightly again (phpunit not ready)
---
.github/workflows/tests.yml | 2 +-
phpunit-8.2.xml | 30 ------------------------------
2 files changed, 1 insertion(+), 31 deletions(-)
delete mode 100644 phpunit-8.2.xml
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index defe6e8..953430e 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
+ php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
steps:
- uses: actions/checkout@v3
diff --git a/phpunit-8.2.xml b/phpunit-8.2.xml
deleted file mode 100644
index 528ae91..0000000
--- a/phpunit-8.2.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
- ./src
-
-
- ./vendor
- ./tests
-
-
-
-
- ./tests/
-
-
-