This repository was archived by the owner on Apr 28, 2021. It is now read-only.
generated from JBZoo/Skeleton-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (62 loc) · 1.72 KB
/
main.yml
File metadata and controls
70 lines (62 loc) · 1.72 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# JBZoo Toolbox - Toolbox-CI
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Toolbox-CI
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Toolbox-CI
#
name: Continuous Integration
on:
pull_request:
branches:
- "*"
push:
branches:
- 'master'
schedule:
- cron: '15 */8 * * *'
env:
COLUMNS: 120
TERM_PROGRAM: Hyper
jobs:
phpunit:
name: PHPUnit Tests
runs-on: ubuntu-latest
env:
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }}
strategy:
matrix:
php-version: [ 7.2, 7.3, 7.4 ]
experimental: [ false ]
composer_flags: [ "--prefer-lowest", "" ]
build-way: ["build", "update"]
include:
- php-version: "8.0"
experimental: true
- php-version: "8.1"
experimental: true
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup PHP and composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: composer
- name: Build the Project
continue-on-error: ${{ matrix.experimental }}
run: make ${{ matrix.build-way }} --no-print-directory
- name: 🧪 PHPUnit Tests
continue-on-error: ${{ matrix.experimental }}
run: make test --no-print-directory
- name: 👍 Code Quality
continue-on-error: ${{ matrix.experimental }}
run: make codestyle --no-print-directory