Skip to content

Commit a22562c

Browse files
committed
GitHub Actions
1 parent 8b2b40c commit a22562c

2 files changed

Lines changed: 68 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# JBZoo Toolbox - Image
3+
#
4+
# This file is part of the JBZoo Toolbox project.
5+
# For the full copyright and license information, please view the LICENSE
6+
# file that was distributed with this source code.
7+
#
8+
# @package Image
9+
# @license MIT
10+
# @copyright Copyright (C) JBZoo.com, All rights reserved.
11+
# @link https://github.com/JBZoo/Image
12+
#
13+
14+
name: Continuous Integration
15+
16+
on:
17+
pull_request:
18+
branches:
19+
- "*"
20+
push:
21+
branches:
22+
- 'master'
23+
schedule:
24+
- cron: '15 */8 * * *'
25+
26+
env:
27+
COLUMNS: 120
28+
TERM_PROGRAM: Hyper
29+
30+
jobs:
31+
phpunit:
32+
name: PHPUnit
33+
runs-on: ubuntu-latest
34+
env:
35+
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }}
36+
strategy:
37+
matrix:
38+
php-version: [ 7.2, 7.3, 7.4 ]
39+
coverage: [ xdebug, none ]
40+
experimental: [ false ]
41+
composer_flags: [ "--prefer-lowest", "" ]
42+
include:
43+
- php-version: "8.0"
44+
experimental: true
45+
- php-version: "8.1"
46+
experimental: true
47+
steps:
48+
- name: Checkout code
49+
uses: actions/checkout@v2
50+
51+
- name: Setup PHP and composer
52+
uses: shivammathur/setup-php@v2
53+
with:
54+
php-version: ${{ matrix.php-version }}
55+
coverage: ${{ matrix.coverage }}
56+
tools: composer
57+
58+
- name: Build the Project
59+
continue-on-error: ${{ matrix.experimental }}
60+
run: make update --no-print-directory
61+
62+
- name: 🧪 PHPUnit Tests
63+
continue-on-error: ${{ matrix.experimental }}
64+
run: make test --no-print-directory
65+
66+
- name: 👍 Code Quality
67+
continue-on-error: ${{ matrix.experimental }}
68+
run: make codestyle --no-print-directory

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
}
4444
},
4545

46-
"minimum-stability" : "dev",
47-
"prefer-stable" : true,
48-
4946
"autoload-dev" : {
5047
"classmap" : ["tests"]
5148
},

0 commit comments

Comments
 (0)