summaryrefslogtreecommitdiff
path: root/vendor/opentracing/opentracing/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/opentracing/opentracing/.github/workflows/ci.yml')
-rw-r--r--vendor/opentracing/opentracing/.github/workflows/ci.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/opentracing/opentracing/.github/workflows/ci.yml b/vendor/opentracing/opentracing/.github/workflows/ci.yml
new file mode 100644
index 000000000..8fba7baf8
--- /dev/null
+++ b/vendor/opentracing/opentracing/.github/workflows/ci.yml
@@ -0,0 +1,44 @@
+name: Build
+on:
+ push:
+ branches:
+ - master
+ paths-ignore:
+ - "**/*.md"
+ - "LICENSE"
+ pull_request:
+jobs:
+ test:
+ name: OpenTracing (PHP version ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
+ runs-on: ${{ matrix.operating-system }}
+ strategy:
+ fail-fast: false
+ matrix:
+ operating-system: [ubuntu-latest, windows-latest, macos-latest]
+ php-versions: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Setup PHP, with composer and extensions
+ uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
+ with:
+ php-version: ${{ matrix.php-versions }}
+ - name: Get composer cache directory
+ id: composer-cache
+ run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+ - name: Cache composer dependencies
+ uses: actions/cache@v2
+ with:
+ path: ${{ steps.composer-cache.outputs.dir }}
+ key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
+ restore-keys: ${{ runner.os }}-composer-
+ - name: Install Composer dependencies
+ run: |
+ composer install --no-progress --prefer-dist --optimize-autoloader
+ - name: Run lint
+ if: matrix.operating-system != 'windows-latest'
+ run: composer lint
+ - name: Run static check
+ run: composer static-check
+ - name: Run tests
+ run: composer test