Skip to content

Commit f0eab1d

Browse files
committed
Add GHA workflow.
1 parent fe93049 commit f0eab1d

2 files changed

Lines changed: 32 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
pull_request:
7+
schedule:
8+
- cron: 0 14 * * 0
9+
jobs:
10+
ci:
11+
name: PHP v${{ matrix.php }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: ['7.2', '7.3', '7.4']
17+
steps:
18+
- name: Set up PHP
19+
uses: shivammathur/setup-php@master
20+
with:
21+
php-version: ${{ matrix.php }}
22+
coverage: xdebug
23+
- name: Check PHP version
24+
run: php -v
25+
- name: Checkout
26+
uses: actions/checkout@v1
27+
- name: Make
28+
run: make ci
29+
- name: Upload Coverage Reports
30+
if: success()
31+
run: |
32+
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"

.travis.yml

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

0 commit comments

Comments
 (0)