Skip to content

Commit 3c0c62b

Browse files
Merge pull request #16 from JellyBellyDev/feat/github-actions
chore(ci): add github actions
2 parents 5ad5413 + 6d83c94 commit 3c0c62b

File tree

5 files changed

+46
-80
lines changed

5 files changed

+46
-80
lines changed

.circleci/config.yml

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

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
php-versions: ['7.4', '8.0']
14+
15+
name: PHP ${{ matrix.php-versions }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-versions }}
25+
tools: composer:v2
26+
27+
- name: Validate composer.json
28+
run: composer validate
29+
30+
- name: Install dependencies
31+
run: composer install -n --no-progress --no-suggest
32+
33+
- name: Coding Standard Checks
34+
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
35+
36+
- name: Run phpunit tests
37+
run: vendor/bin/phpunit -d memory_limit=-1 --coverage-clover clover.xml
38+
39+
- name: Upload coverage to Codecov
40+
run: bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v3.1.0
4+
- Replace CircleCi with GitHub Actions
5+
- Add compatibility with PHP 8.0
6+
37
## v3.0.1
48
- Replace TravisCI and Scrutinizer with CircleCi and Codecov
59
- Published docker image `jellybellydev/imageorientationfix:1.0` starting from file `.docker/php74/Dockerfile`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PHP library to fix image orientation by exif data with thanks to method [exif_read_data](http://it2.php.net/manual/en/function.exif-read-data.php)
44

5-
[![CircleCI](https://circleci.com/gh/JellyBellyDev/ImageOrientationFix.svg?style=svg)](https://circleci.com/gh/JellyBellyDev/ImageOrientationFix)
5+
[![Gitbub actions](https://github.com/JellyBellyDev/ImageOrientationFix/workflows/Build/badge.svg)](https://github.com/JellyBellyDev/ImageOrientationFix/actions)
66
[![Latest Stable Version](https://poser.pugx.org/jellybellydev/image-orientation-fix/v/stable)](https://packagist.org/packages/jellybellydev/image-orientation-fix)
77
[![Total Downloads](https://poser.pugx.org/jellybellydev/image-orientation-fix/downloads)](https://packagist.org/packages/jellybellydev/image-orientation-fix)
88
[![composer.lock](https://poser.pugx.org/jellybellydev/image-orientation-fix/composerlock)](https://packagist.org/packages/jellybellydev/image-orientation-fix)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
},
3333
"require": {
34-
"php": "^7.4",
34+
"php": "^7.4|^8.0",
3535
"ext-gd": "*",
3636
"ext-exif": "*"
3737
},

0 commit comments

Comments
 (0)