Skip to content

Commit 8ac6f40

Browse files
committed
Switched CI to Github Actions
1 parent 5eb1cc7 commit 8ac6f40

File tree

4 files changed

+53
-28
lines changed

4 files changed

+53
-28
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
* text text=auto eol=lf
3+
4+
.php diff=php

.github/workflows/build.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
3+
on:
4+
- push
5+
- workflow_dispatch
6+
7+
jobs:
8+
tests:
9+
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} (${{ matrix.composer-options }})
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php-version:
15+
- "8.0"
16+
- "8.1"
17+
- "8.2"
18+
os:
19+
- ubuntu-latest
20+
- macOS-latest
21+
- windows-latest
22+
composer-options:
23+
- ""
24+
- "--prefer-lowest"
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate
31+
32+
- name: Set up PHP ${{ matrix.php-version }}
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-version }}
36+
extensions: intl
37+
coverage: xdebug
38+
ini-values: error_reporting=E_ALL
39+
40+
- name: Install dependencies
41+
run: composer update
42+
--prefer-dist
43+
--no-progress
44+
${{ matrix.composer-options }}
45+
46+
- name: Run tests
47+
run: composer test

.travis.yml

-26
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PHP JSON Patch
22

33
[![Latest Stable Version](https://poser.pugx.org/remorhaz/php-json-patch/v/stable)](https://packagist.org/packages/remorhaz/php-json-patch)
4-
[![Build Status](https://travis-ci.org/remorhaz/php-json-patch.svg?branch=master)](https://travis-ci.org/remorhaz/php-json-patch)
4+
[![Build](https://github.com/remorhaz/php-json-patch/actions/workflows/build.yml/badge.svg)](https://github.com/remorhaz/php-json-patch/actions/workflows/build.yml)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/remorhaz/php-json-patch/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/remorhaz/php-json-patch/?branch=master)
66
[![codecov](https://codecov.io/gh/remorhaz/php-json-patch/branch/master/graph/badge.svg)](https://codecov.io/gh/remorhaz/php-json-patch)
77
[![Infection MSI](https://badge.stryker-mutator.io/github.com/remorhaz/php-json-patch/master)](https://infection.github.io)
@@ -11,7 +11,7 @@
1111
This library implements [RFC6902](https://tools.ietf.org/html/rfc6902)-compliant JSON patch tool.
1212

1313
## Requirements
14-
- PHP 7.3+
14+
- PHP 8.0+
1515
- [JSON extension](https://www.php.net/manual/en/book.json.php) (ext-json) - required by [remorhaz/php-json-data](https://github.com/remorhaz/php-json-data) to access JSON documents.
1616
- [Internationalization functions](https://www.php.net/manual/en/book.intl.php) (ext-intl) - required by [`remorhaz/php-json-data`](https://github.com/remorhaz/php-json-data) to compare Unicode strings.
1717

0 commit comments

Comments
 (0)