Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from TravisCI to Github Actions. #134

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.