From f29d518918f167a3b45f0356b8f59b55088d42d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB?= Date: Mon, 24 May 2021 16:22:49 +0300 Subject: [PATCH] enable pcov & do not build twice --- .github/workflows/php-with-supercronic.yml | 2 +- php-with-supercronic/Dockerfile_7.3 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php-with-supercronic.yml b/.github/workflows/php-with-supercronic.yml index 9ab881d..0584b48 100644 --- a/.github/workflows/php-with-supercronic.yml +++ b/.github/workflows/php-with-supercronic.yml @@ -14,12 +14,12 @@ env: jobs: test_7_3: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v2 - name: Run tests run: docker build . --file php-with-supercronic/Dockerfile_7.3 push_7_3: - needs: test_7_3 runs-on: ubuntu-latest if: github.event_name == 'push' permissions: diff --git a/php-with-supercronic/Dockerfile_7.3 b/php-with-supercronic/Dockerfile_7.3 index 55d05e1..feff4a9 100644 --- a/php-with-supercronic/Dockerfile_7.3 +++ b/php-with-supercronic/Dockerfile_7.3 @@ -23,7 +23,7 @@ RUN apk --update add \ && docker-php-ext-configure zip --with-libzip=/usr/include \ && docker-php-ext-configure intl \ && docker-php-ext-install -j$(nproc) pgsql pdo_pgsql intl pcntl soap imap \ - && docker-php-ext-enable opcache redis \ + && docker-php-ext-enable opcache redis pcov \ && rm -rf /var/cache/apk/* && rm -rf /etc/apk/cache \ && curl -L https://getcomposer.org/composer-stable.phar -o /usr/bin/composer && chmod a+x /usr/bin/composer