From fc8b61c686f7e44e359a5a508b1ee6980d27a4ca Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 10 Nov 2021 13:15:21 +0900 Subject: [PATCH] chore: update continuous-integration.yml for 5.x --- .github/workflows/continuous-integration.yml | 15 ++------- .github/workflows/tests.yml | 34 -------------------- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 987f1401..17030a2f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -15,13 +15,7 @@ jobs: operating-system: - ubuntu-latest php-version: - - '5.6' - - '7.0' - - '7.1' - - '7.2' - - '7.3' - - '7.4' - - '8.0' + - '8.1' steps: - name: Checkout uses: actions/checkout@v1 @@ -45,12 +39,7 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - - name: Install dependencies (5.6 and 7.x) - if: ${{ matrix.php-version != '8.0' }} - run: composer install --no-interaction --prefer-dist - - - name: Install dependencies (8.0) - if: ${{ matrix.php-version == '8.0' }} + - name: Install dependencies run: composer install --no-interaction --prefer-dist --ignore-platform-req=php - name: Run test suite diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 6cb735e4..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Tests -on: [push,pull_request] -jobs: - run: - runs-on: ubuntu-latest - strategy: - matrix: - php-versions: ['8.1'] - steps: - - name: Download standard files - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-versions }} - coverage: xdebug - - - name: Get composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Install dependencies - run: composer install --prefer-dist - - - name: Run PHPUnit Tests - run: php vendor/bin/phpunit