From 544af117bbe064b9bca2509317df07126a83761e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 16 Mar 2023 10:35:47 +0100 Subject: [PATCH 1/2] Enhancement: Run tests against phpunit/phpunit:dev-main every 12 hours --- .github/workflows/phpunit.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/phpunit.yml diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 00000000..69bf27ea --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,46 @@ +name: Tests + +on: + push: + pull_request: + schedule: + - cron: '0 */12 * * *' + +jobs: + ci: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + php: ['8.1'] + phpunit-branch: [main] + + name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.phpunit-branch }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer:v2 + coverage: none + + - name: Setup Problem Matchers + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install PHP dependencies with phpunit/phpunit:dev-${{ matrix.phpunit-branch }} + run: composer require phpunit/phpunit:dev-${{ matrix.phpunit-branch }} --ansi --no-interaction --no-progress + + - name: Unit Tests + run: composer test:unit + + - name: Unit Tests in Parallel + run: composer test:parallel + + - name: Integration Tests + run: composer test:integration From c662c59daf4839db1ff0b037c599350b96d12c48 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 16 Mar 2023 12:09:35 +0000 Subject: [PATCH 2/2] chore: updates build name --- .github/workflows/{phpunit.yml => nightly-tests.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{phpunit.yml => nightly-tests.yml} (98%) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/nightly-tests.yml similarity index 98% rename from .github/workflows/phpunit.yml rename to .github/workflows/nightly-tests.yml index 69bf27ea..4833aa7b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/nightly-tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: Nightly Tests on: push: