-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (38 loc) · 901 Bytes
/
ci.yaml
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
35
36
37
38
name: ci
env:
XDEBUG_MODE: 'coverage'
on:
push:
branches:
- master
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
- 'LICENSE'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache Composer
uses: actions/cache@v1
with:
path: vendor
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
- name: Composer Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Lint
run: composer lint
- name: Unit Tests
run: composer test
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}