-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 816 Bytes
/
ci.yml
File metadata and controls
34 lines (34 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches:
- '*'
pull_request:
schedule:
- cron: 0 14 * * 0
jobs:
ci:
name: PHP v${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Check PHP version
run: php -v
- name: Checkout
uses: actions/checkout@v1
- name: Make
run: make ci
env:
PHP_CS_FIXER_IGNORE_ENV: "true"
- name: Upload Coverage Reports
if: success()
run: |
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"