From d635665c1b60b7aec307a6f86eb60acbe69ca2ff Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Wed, 22 Mar 2023 11:53:33 +0100 Subject: [PATCH] disable integration tests for PR workflows --- .github/workflows/integration-tests.yml | 41 +++++++++++++++++++++++++ .github/workflows/tests.yml | 3 -- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/integration-tests.yml diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 00000000..2c830dba --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -0,0 +1,41 @@ +name: Tests + +on: + push: + schedule: + - cron: '0 0 * * *' + + +jobs: + ci: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + php: ['8.1', '8.2'] + dependency-version: [prefer-lowest, prefer-stable] + + name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} + + 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 Matches + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install PHP dependencies + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi + + - name: Integration Tests + run: composer test:integration + diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 383eae7d..564b1a04 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,6 +43,3 @@ jobs: - name: Unit Tests in Parallel run: composer test:parallel if: startsWith(matrix.os, 'windows') != true - - - name: Integration Tests - run: composer test:integration