Skip to content

Commit

Permalink
Merge pull request #177 from scoutapp/dependency-update
Browse files Browse the repository at this point in the history
Update dependencies and add GitHub actions
  • Loading branch information
asgrim authored May 27, 2020
2 parents ee6b0ee + 0dbf05d commit 1c9fa82
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 236 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
tests:
name: "Run tests"
runs-on: ubuntu-latest
strategy:
matrix:
dependencies: ["lowest", "highest"]
extensions: ["scoutapm", ""]
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
steps:
- uses: actions/checkout@v2
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: pecl
extensions: ${{ matrix.extensions }}
- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --prefer-dist --no-interaction --no-progress --no-suggest"
- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"
- name: "Run PHPUnit test suite"
run: "vendor/bin/phpunit"
- name: "Check for memory leaks"
run: "tests/check-memory-leaks.sh"

cs:
name: "Check coding standards"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "7.4"
- name: "Install dependencies"
run: "composer install"
- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs"

static-analysis:
name: "Perform static analysis"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "7.4"
- name: "Install dependencies"
run: "composer install"
- name: "Run Psalm"
run: "vendor/bin/psalm"
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scout PHP APM Agent

[![Build Status](https://travis-ci.com/scoutapp/scout-apm-php.svg?branch=master)](https://travis-ci.com/scoutapp/scout-apm-php) [![Latest Stable Version](https://poser.pugx.org/scoutapp/scout-apm-php/v/stable)](https://packagist.org/packages/scoutapp/scout-apm-php) [![License](https://poser.pugx.org/scoutapp/scout-apm-php/license)](https://packagist.org/packages/scoutapp/scout-apm-php)
[![Build](https://github.com/scoutapp/scout-apm-php/workflows/Build/badge.svg?branch=master&event=push)](https://github.com/scoutapp/scout-apm-php/actions?query=branch%3Amaster) [![Latest Stable Version](https://poser.pugx.org/scoutapp/scout-apm-php/v/stable)](https://packagist.org/packages/scoutapp/scout-apm-php) [![Total Downloads](https://poser.pugx.org/scoutapp/scout-apm-php/downloads)](https://packagist.org/packages/scoutapp/scout-apm-php) [![License](https://poser.pugx.org/scoutapp/scout-apm-php/license)](https://packagist.org/packages/scoutapp/scout-apm-php)

Email us at [email protected] to get on the beta invite list!

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"psr/log": "^1.0",
"psr/simple-cache": "^1.0",
"ralouphie/getallheaders": "^2.0.5|^3.0",
"ramsey/uuid": "^3.0",
"ramsey/uuid": "^3.0|^4.0",
"webmozart/assert": "^1.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 1c9fa82

Please sign in to comment.