From d7f7bf34ec0b0a0fa08fec38fa2d1771f596205f Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 17:14:17 +0200 Subject: [PATCH 1/6] Add running unit-tests --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index faac56d..100f5aa 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,14 @@ Larinfo +--------------------+------------------------------------------+ ``` +## Running Tests + +To run the unit tests, execute this following command. + +```shell +vendor/bin/phpunit --group unit +``` + ## License Please see [License File](LICENSE.md) for more information. \ No newline at end of file From 8db70e0731c5d554a0b8587afcc76091b16867b6 Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 17:19:03 +0200 Subject: [PATCH 2/6] Add running unit-tests on GHA Signed-off-by: Muhammad Zamroni --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 100f5aa..8b8d7a7 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,26 @@ To run the unit tests, execute this following command. vendor/bin/phpunit --group unit ``` +On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows`. + +To run the **Ubuntu** specific test on Ubuntu, run this following command. + +```shell +vendor/bin/phpunit --group ubuntu +``` + +To run the **MacOS** specific test on MacOS, run this following command. + +```shell +vendor/bin/phpunit --group macos +``` + +To run the **Windows** specific test on Windows, run this following command. + +```shell +vendor/bin/phpunit --group windows +``` + ## License Please see [License File](LICENSE.md) for more information. \ No newline at end of file From ebdafe4e50c0b4c67bf149e12d560ec070e0e2c1 Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 17:35:06 +0200 Subject: [PATCH 3/6] Add runner info Signed-off-by: Muhammad Zamroni --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b8d7a7..394fe29 100644 --- a/README.md +++ b/README.md @@ -236,19 +236,19 @@ vendor/bin/phpunit --group unit On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows`. -To run the **Ubuntu** specific test on Ubuntu, run this following command. +To run the tests on [**Ubuntu 22.04 (Jammy)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command. ```shell vendor/bin/phpunit --group ubuntu ``` -To run the **MacOS** specific test on MacOS, run this following command. +To run the tests on [**macOS Big Sur (11)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-11-Readme.md) and [**macOS Monterey (12)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-12-Readme.md) on x86_64, run this following command. ```shell vendor/bin/phpunit --group macos ``` -To run the **Windows** specific test on Windows, run this following command. +To run the tests on [**Windows Server 2019)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2019-Readme.md), run this following command. ```shell vendor/bin/phpunit --group windows From c7147792b1f8b0507ec4d06258eeb5d24dee8c45 Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 18:34:39 +0200 Subject: [PATCH 4/6] Update OS Signed-off-by: Muhammad Zamroni --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 394fe29..4f9b6fc 100644 --- a/README.md +++ b/README.md @@ -236,19 +236,19 @@ vendor/bin/phpunit --group unit On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows`. -To run the tests on [**Ubuntu 22.04 (Jammy)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command. +To run the tests on [Ubuntu 20.24](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2004-Readme.md) and [Ubuntu 22.04 (Jammy)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command. ```shell vendor/bin/phpunit --group ubuntu ``` -To run the tests on [**macOS Big Sur (11)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-11-Readme.md) and [**macOS Monterey (12)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-12-Readme.md) on x86_64, run this following command. +To run the tests on [macOS Monterey (12)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-12-Readme.md) and [macOS Ventura (13)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/macos/macos-13-Readme.md), run this following command. ```shell vendor/bin/phpunit --group macos ``` -To run the tests on [**Windows Server 2019)**](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2019-Readme.md), run this following command. +To run the tests on [Windows Server 2019](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2019-Readme.md) and [Windows Server 2022](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/win/Windows2022-Readme.md), run this following command. ```shell vendor/bin/phpunit --group windows From a0e28a087142b150ce5b8a460d4536bf86b3cddb Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 18:35:57 +0200 Subject: [PATCH 5/6] Update ubuntu Signed-off-by: Muhammad Zamroni --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f9b6fc..9d39712 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ vendor/bin/phpunit --group unit On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows`. -To run the tests on [Ubuntu 20.24](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2004-Readme.md) and [Ubuntu 22.04 (Jammy)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command. +To run the tests on [Ubuntu 20.04 LTS (Focal Fossa)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2004-Readme.md) and [Ubuntu 22.04 LTS (Jammy Jellyfish)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command. ```shell vendor/bin/phpunit --group ubuntu From 73ff2dcde3ccb0eb1d0882962ad2dbd698fb414d Mon Sep 17 00:00:00 2001 From: Muhammad Zamroni Date: Sat, 7 Oct 2023 18:37:59 +0200 Subject: [PATCH 6/6] Add GHA title Signed-off-by: Muhammad Zamroni --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d39712..017950a 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,9 @@ To run the unit tests, execute this following command. vendor/bin/phpunit --group unit ``` -On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows`. +### GitHub Actions + +On the GitHub Actions, the tests run on the respective operating system, which are `ubuntu`, `macos`, and `windows` when a pull request is made. To run the tests on [Ubuntu 20.04 LTS (Focal Fossa)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2004-Readme.md) and [Ubuntu 22.04 LTS (Jammy Jellyfish)](https://github.com/actions/runner-images/blob/23ff0d746804fc3c0ac7f961f2fbca953824c775/images/linux/Ubuntu2204-Readme.md), run this following command.