Skip to content

Commit ae2e8cd

Browse files
committed
minor #78 replace Travis CI with GitHub Actions (xabbuh)
This PR was merged into the 3.0.x-dev branch. Discussion ---------- replace Travis CI with GitHub Actions Commits ------- 1f80d01 replace Travis CI with GitHub Actions
2 parents 437245b + 1f80d01 commit ae2e8cd

File tree

2 files changed

+48
-30
lines changed

2 files changed

+48
-30
lines changed

.github/workflows/ci.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: 'CI'
2+
3+
on:
4+
- 'push'
5+
- 'pull_request'
6+
7+
jobs:
8+
tests:
9+
name: 'Tests'
10+
11+
runs-on: 'ubuntu-latest'
12+
13+
strategy:
14+
matrix:
15+
include:
16+
- php-version: '7.1'
17+
composer-options: '--prefer-stable'
18+
- php-version: '7.2'
19+
composer-options: '--prefer-lowest --prefer-stable'
20+
- php-version: '7.3'
21+
composer-options: '--prefer-stable'
22+
23+
steps:
24+
- name: 'Check out'
25+
uses: 'actions/checkout@v2'
26+
27+
- name: 'Set up PHP'
28+
uses: 'shivammathur/setup-php@v2'
29+
with:
30+
php-version: '${{ matrix.php-version }}'
31+
coverage: 'none'
32+
33+
- name: 'Get Composer cache directory'
34+
id: 'composer-cache'
35+
run: 'echo "::set-output name=cache-dir::$(composer config cache-files-dir)"'
36+
37+
- name: 'Cache dependencies'
38+
uses: 'actions/cache@v2'
39+
with:
40+
path: '${{ steps.composer-cache.outputs.cache-dir }}'
41+
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
42+
restore-keys: 'php-${{ matrix.php-version }}-composer-locked-'
43+
44+
- name: 'Install dependencies'
45+
run: 'composer update --no-progress $COMPOSER_OPTIONS'
46+
47+
- name: 'Run PhpSpec'
48+
run: 'vendor/bin/phpspec run'

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)