Skip to content

Commit

Permalink
Merge pull request #16 from JellyBellyDev/feat/github-actions
Browse files Browse the repository at this point in the history
chore(ci): add github actions
  • Loading branch information
JellyBellyDev authored Jan 5, 2021
2 parents 5ad5413 + 6d83c94 commit 3c0c62b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 80 deletions.
78 changes: 0 additions & 78 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:
pull_request:

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.4', '8.0']

name: PHP ${{ matrix.php-versions }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: composer install -n --no-progress --no-suggest

- name: Coding Standard Checks
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

- name: Run phpunit tests
run: vendor/bin/phpunit -d memory_limit=-1 --coverage-clover clover.xml

- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v3.1.0
- Replace CircleCi with GitHub Actions
- Add compatibility with PHP 8.0

## v3.0.1
- Replace TravisCI and Scrutinizer with CircleCi and Codecov
- Published docker image `jellybellydev/imageorientationfix:1.0` starting from file `.docker/php74/Dockerfile`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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)

[![CircleCI](https://circleci.com/gh/JellyBellyDev/ImageOrientationFix.svg?style=svg)](https://circleci.com/gh/JellyBellyDev/ImageOrientationFix)
[![Gitbub actions](https://github.com/JellyBellyDev/ImageOrientationFix/workflows/Build/badge.svg)](https://github.com/JellyBellyDev/ImageOrientationFix/actions)
[![Latest Stable Version](https://poser.pugx.org/jellybellydev/image-orientation-fix/v/stable)](https://packagist.org/packages/jellybellydev/image-orientation-fix)
[![Total Downloads](https://poser.pugx.org/jellybellydev/image-orientation-fix/downloads)](https://packagist.org/packages/jellybellydev/image-orientation-fix)
[![composer.lock](https://poser.pugx.org/jellybellydev/image-orientation-fix/composerlock)](https://packagist.org/packages/jellybellydev/image-orientation-fix)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
},
"require": {
"php": "^7.4",
"php": "^7.4|^8.0",
"ext-gd": "*",
"ext-exif": "*"
},
Expand Down

0 comments on commit 3c0c62b

Please sign in to comment.