Skip to content

Commit 709a67f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 58d33ae + 8959a03 commit 709a67f

File tree

4 files changed

+45
-19
lines changed

4 files changed

+45
-19
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/ export-ignore
22
phpunit.xml export-ignore
33
.gitattributes export-ignore
4-
.gitignore export-ignore
5-
.travis.yml export-ignore
4+
.gitignore export-ignore

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Tests"
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
pull_request:
7+
paths-ignore:
8+
- '**.md'
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php: [7.0, 7.1, 7.2, 7.3, 7.4]
16+
stability: [prefer-stable]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.composer/cache/files
28+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
coverage: none
35+
36+
- name: Update composer
37+
run: composer self-update
38+
39+
- name: Install dependencies
40+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
41+
42+
- name: Execute tests
43+
run: vendor/bin/phpunit --verbose

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Opis JSON Schema
22
====================
3-
[![Build Status](https://travis-ci.org/opis/json-schema.png)](https://travis-ci.org/opis/json-schema)
3+
[![Tests](https://github.com/opis/json-schema/workflows/Tests/badge.svg)](https://github.com/opis/json-schema/actions)
44
[![Latest Stable Version](https://poser.pugx.org/opis/json-schema/v/stable.png)](https://packagist.org/packages/opis/json-schema)
55
[![Latest Unstable Version](https://poser.pugx.org/opis/json-schema/v/unstable.png)](https://packagist.org/packages/opis/json-schema)
66
[![License](https://poser.pugx.org/opis/json-schema/license.png)](https://packagist.org/packages/opis/json-schema)

0 commit comments

Comments
 (0)