From d60d35b3c802c0d138ccf3b856517f010cd25558 Mon Sep 17 00:00:00 2001 From: Huy Pham <11185878+hdp617@users.noreply.github.com> Date: Thu, 8 Oct 2020 16:25:44 -0700 Subject: [PATCH 1/4] Create unit.yml --- .github/workflows/unit.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/unit.yml diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 00000000..cef773a8 --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,29 @@ +name: PHP Unit CI +on: + push: + branches: + - master + pull_request: +jobs: + build: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['7.2', '7.3', '7.4'] + name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Uses PHP ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer install + - name: Run Script + run: vendor/bin/phpunit From 9e8e93a38bceaf987e86bee5b878fbd034d25780 Mon Sep 17 00:00:00 2001 From: Huy Pham <11185878+hdp617@users.noreply.github.com> Date: Fri, 9 Oct 2020 14:23:51 -0700 Subject: [PATCH 2/4] Update unit.yml --- .github/workflows/unit.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index cef773a8..22c33986 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -24,6 +24,8 @@ jobs: with: timeout_minutes: 10 max_attempts: 3 - command: composer install - - name: Run Script - run: vendor/bin/phpunit + command: composer install --prefer-dist --no-interaction + - name: Run phpunit + run: mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml + - name: Run coveralls + run: ./vendor/bin/coveralls -v From a37b8c5d52027e0c034ed83c89cdbb2192cc8b35 Mon Sep 17 00:00:00 2001 From: Huy Pham <11185878+hdp617@users.noreply.github.com> Date: Fri, 9 Oct 2020 14:25:24 -0700 Subject: [PATCH 3/4] Update unit.yml --- .github/workflows/unit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 22c33986..40f440be 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -26,6 +26,6 @@ jobs: max_attempts: 3 command: composer install --prefer-dist --no-interaction - name: Run phpunit - run: mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml + run: mkdir -p build/logs && ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml - name: Run coveralls run: ./vendor/bin/coveralls -v From 369a0b725c6627c9bbba2e8c54e898a7d37c4006 Mon Sep 17 00:00:00 2001 From: Montgomery Carter Date: Mon, 27 Nov 2023 14:11:36 -0800 Subject: [PATCH 4/4] Update composer.json - remove dependency on mikey179/vfsStream This package name with uppercase is no longer a supported package name due to the uppercase. Also, this dependency is not used any more, so just getting rid of it. --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 8cdb48b6..81abcebd 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "php": ">=5.4.0" }, "require-dev": { - "mikey179/vfsStream": "~1", "phpunit/phpunit": "4.6.*", "satooshi/php-coveralls": "dev-master" },