Skip to content

Commit b730cba

Browse files
author
Alexandru Bucur
authored
Merge pull request #134 from lucasmichot/feature/github-actions
Move from TravisCI to Github Actions.
2 parents d4d73c6 + 08a69b6 commit b730cba

File tree

5 files changed

+40
-45
lines changed

5 files changed

+40
-45
lines changed

.github/workflows/tests.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [ '7.0','7.1','7.2','7.3', '7.4' ]
15+
stability: [ prefer-lowest, prefer-stable ]
16+
17+
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
18+
19+
steps:
20+
- name: Checkout the code
21+
uses: actions/checkout@v2
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
coverage: none
27+
extensions: curl
28+
php-version: ${{ matrix.php }}
29+
tools: composer:v2
30+
31+
- name: Install composer dependencies
32+
uses: nick-invision/retry@v2
33+
with:
34+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
35+
max_attempts: 5
36+
timeout_minutes: 5
37+
38+
- name: Run the tests
39+
run: vendor/bin/phpunit --verbose

.travis.yml

-14
This file was deleted.

composer-7-0.json

-25
This file was deleted.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ext-curl": "*"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^7.5"
18+
"phpunit/phpunit": "^6.0|^7.5"
1919
},
2020
"autoload": {
2121
"psr-4": {

test-bash.sh

-5
This file was deleted.

0 commit comments

Comments
 (0)