Add timeout to codecov step in the workflow

This commit is contained in:
Shivam Mathur 2019-10-19 19:41:49 +05:30
parent 46f009cce1
commit 0ac43c03b2
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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