Skip to content

Commit

Permalink
Merge pull request #112 from SimonFrings/actions
Browse files Browse the repository at this point in the history
Use GitHub actions for continuous integration (CI)
  • Loading branch information
clue authored Dec 11, 2020
2 parents e7de462 + 9f831ce commit 63bb87d
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 37 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
push:
pull_request:

jobs:
PHPUnit:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:1.10.19
- run: composer install
- run: vendor/bin/phpunit --coverage-text

PHPUnit-hhvm:
name: PHPUnit (HHVM)
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: azjezz/setup-hhvm@v1
with:
version: lts-3.30
- run: curl -O https://getcomposer.org/download/1.10.19/composer.phar
- run: hhvm composer.phar install
- run: hhvm vendor/bin/phpunit

Install-with-Symfony-4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
- run: composer install --dry-run --working-dir=tests/install-as-dep

Build-phar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
tools: composer:1.10.19
- run: composer install
- run: composer build
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# clue/phar-composer [![Build Status](https://travis-ci.org/clue/phar-composer.png?branch=master)](https://travis-ci.org/clue/phar-composer)
# clue/phar-composer

[![CI status](https://github.com/clue/phar-composer/workflows/CI/badge.svg)](https://github.com/clue/phar-composer/actions)

Simple phar creation for any project managed via Composer.

Expand Down
2 changes: 1 addition & 1 deletion tests/Phar/PackagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function testGetSystemBinReturnsDefaultPackageNameInCustomBin()
'name' => 'clue/phar-composer'
), '');

$this->assertEquals('/home/me/phar-composer', $this->packager->getSystemBin($package, '/home/me'));
$this->assertEquals('/usr/bin/phar-composer', $this->packager->getSystemBin($package, '/usr/bin'));
}

public function provideValidPackageUrl()
Expand Down

0 comments on commit 63bb87d

Please sign in to comment.