mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-22 15:36:52 +00:00
Initial import
This commit is contained in:
commit
2295a33590
884 changed files with 93939 additions and 0 deletions
60
php/vendor/http-interop/http-factory-guzzle/.github/workflows/ci.yaml
vendored
Normal file
60
php/vendor/http-interop/http-factory-guzzle/.github/workflows/ci.yaml
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-18.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php:
|
||||
- '7.3'
|
||||
- '7.4'
|
||||
- '8.0'
|
||||
minimum_versions: [false]
|
||||
coverage: ['none']
|
||||
include:
|
||||
- description: 'Minimum version'
|
||||
php: '7.3'
|
||||
minimum_versions: true
|
||||
- description: 'Log Code Coverage'
|
||||
php: '8.0'
|
||||
coverage: 'xdebug'
|
||||
|
||||
name: PHP ${{ matrix.php }} ${{ matrix.description }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.composer/cache/files
|
||||
key: ${{ matrix.php }}
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
coverage: ${{ matrix.coverage }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install
|
||||
if: matrix.minimum_versions == false
|
||||
|
||||
- name: Install dependencies (lowest versions)
|
||||
run: composer update --no-interaction --prefer-lowest
|
||||
if: matrix.minimum_versions == true
|
||||
|
||||
- name: Run PHPUnit tests
|
||||
run: vendor/bin/phpunit
|
||||
|
||||
- name: Upload code coverage
|
||||
uses: codecov/codecov-action@v2
|
||||
if: matrix.coverage == 'xdebug'
|
||||
with:
|
||||
file: './build/logs/clover.xml'
|
||||
fail_ci_if_error: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue