Skip to content

Commit

Permalink
Move from TravisCI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Michot committed Mar 3, 2021
1 parent d4d73c6 commit 08a69b6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 45 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: tests

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ '7.0','7.1','7.2','7.3', '7.4' ]
stability: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: curl
php-version: ${{ matrix.php }}
tools: composer:v2

- name: Install composer dependencies
uses: nick-invision/retry@v2
with:
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
max_attempts: 5
timeout_minutes: 5

- name: Run the tests
run: vendor/bin/phpunit --verbose
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

25 changes: 0 additions & 25 deletions composer-7-0.json

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": "^6.0|^7.5"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 0 additions & 5 deletions test-bash.sh

This file was deleted.

0 comments on commit 08a69b6

Please sign in to comment.