Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit cd60bd1

Browse files
authored
Merge pull request #122 from opentracing/gets_rid_of_travis
chore: adds GHA.
2 parents 40efc0c + f6d128b commit cd60bd1

File tree

4 files changed

+45
-29
lines changed

4 files changed

+45
-29
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- "**/*.md"
8+
- "LICENSE"
9+
pull_request:
10+
jobs:
11+
test:
12+
name: OpenTracing (PHP version ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
13+
runs-on: ${{ matrix.operating-system }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
operating-system: [ubuntu-latest, windows-latest, macos-latest]
18+
php-versions: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Setup PHP, with composer and extensions
23+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
24+
with:
25+
php-version: ${{ matrix.php-versions }}
26+
- name: Get composer cache directory
27+
id: composer-cache
28+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
29+
- name: Cache composer dependencies
30+
uses: actions/cache@v2
31+
with:
32+
path: ${{ steps.composer-cache.outputs.dir }}
33+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
34+
restore-keys: ${{ runner.os }}-composer-
35+
- name: Install Composer dependencies
36+
run: |
37+
composer install --no-progress --prefer-dist --optimize-autoloader
38+
- name: Run lint
39+
if: matrix.operating-system != 'windows-latest'
40+
run: composer lint
41+
- name: Run static check
42+
run: composer static-check
43+
- name: Run tests
44+
run: composer test

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.travis/php.ini

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenTracing API for PHP
22

3-
[![Build Status](https://travis-ci.org/opentracing/opentracing-php.svg?branch=master)](https://travis-ci.org/opentracing/opentracing-php)
3+
[![Build](https://github.com/opentracing/opentracing-php/actions/workflows/ci.yml/badge.svg)](https://github.com/opentracing/opentracing-php/actions/workflows/ci.yml)
44
[![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-enabled-blue.svg)](http://opentracing.io)
55
[![Total Downloads](https://poser.pugx.org/opentracing/opentracing/downloads)](https://packagist.org/packages/opentracing/opentracing)
66
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg)](https://php.net/)

0 commit comments

Comments
 (0)