Skip to content

Commit db32ce4

Browse files
authored
Merge pull request #20 from renoki-co/feature/github-actions
[feature] Github Actions
2 parents fc47842 + 106d5e1 commit db32ce4

File tree

2 files changed

+35
-24
lines changed

2 files changed

+35
-24
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- '*'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
php: ['7.2', '7.3', '7.4']
19+
name: PHP ${{ matrix.php }}
20+
steps:
21+
- uses: actions/checkout@v1
22+
- uses: actions/cache@v1
23+
name: Cache dependencies
24+
with:
25+
path: ~/.composer/cache/files
26+
key: composer-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}
27+
- name: Install dependencies
28+
run: |
29+
composer install --no-interaction --no-interaction --prefer-source
30+
- name: Run tests
31+
run: |
32+
phpunit --coverage-text --coverage-clover=coverage.xml
33+
- uses: codecov/codecov-action@v1
34+
with:
35+
fail_ci_if_error: true

.travis.yml

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

0 commit comments

Comments
 (0)