From 5669647e382b4f91d19ef966d75ea71780463607 Mon Sep 17 00:00:00 2001 From: Leonardo Lemos Date: Fri, 11 Mar 2022 18:14:08 -0300 Subject: [PATCH] Pipeline (#270) Fiz php 8.1 Pipeline --- .github/workflows/continous-integration.yml | 40 ++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml index 3d51586..6b2f6fa 100644 --- a/.github/workflows/continous-integration.yml +++ b/.github/workflows/continous-integration.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - php-versions: ['7.3', '7.4', '8.0', '8.1'] + php-versions: ['7.3', '7.4', '8.0'] steps: - uses: actions/checkout@v2 @@ -48,3 +48,41 @@ jobs: - name: Run phpunit with lowest dependencies run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration=phpunit-ci.xml + build-new-php-version: + + services: + rabbitmq: + image: rabbitmq:3.8 + ports: + - 5672:5672 + + runs-on: ubuntu-18.04 + strategy: + matrix: + php-versions: ['8.1'] + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: sockets, xdebug + coverage: xdebug + tools: phpunit:latest + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer update --prefer-dist --no-interaction + + - name: Run phpunit + run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration=phpunit-ci.xml \ No newline at end of file