From 0ac43c03b2f126a60723319f3b0b1d0b07bd54f3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 19 Oct 2019 19:41:49 +0530 Subject: [PATCH] Add timeout to codecov step in the workflow --- .github/workflows/workflow.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b58809df..3b1bba8e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -24,16 +24,20 @@ jobs: - name: Installing NPM packages run: npm install - - name: Run tests and send coverage - run: | - npm test - curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }} + - name: Run tests + run: npm test + + - name: Send Coverage + continue-on-error: true + timeout-minutes: 2 + shell: pwsh + run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/clover.xml -n github-actions-codecov-${{ matrix.operating-system }}-php${{ matrix.php-versions }} - name: Installing PHP with extensions and custom config run: node lib/install.js env: php-version: ${{ matrix.php-versions }} - extension-csv: mbstring, xdebug, pcov, pdo_mysql #optional + extension-csv: mbstring, xdebug, pcov #optional ini-values-csv: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata #optional - name: Testing PHP version