Skip to content

Commit 7da74c3

Browse files
committed
Add test action and badges
1 parent dadf321 commit 7da74c3

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [7.2 7.3 7.4]
15+
php: [7.4]
1616

1717
runs-on: ubuntu-latest
1818
name: PHP@${{ matrix.php }}

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
name: test
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.2, 7.3, 7.4]
17+
18+
runs-on: ubuntu-latest
19+
name: PHP@${{ matrix.php }}
20+
21+
steps:
22+
- uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
26+
- uses: actions/checkout@v2
27+
28+
- name: Validate composer.json and composer.lock
29+
run: composer validate
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-progress --no-suggest
33+
34+
- name: Run test suite
35+
run: vendor/bin/phpspec run --config=phpspec-coverage.yml
36+
37+
- uses: codecov/codecov-action@v1

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<a href="https://www.karriere.at/" target="_blank"><img width="200" src="http://www.karriere.at/images/layout/katlogo.svg"></a>
22
<span>&nbsp;&nbsp;&nbsp;</span>
3-
[![Build Status](https://travis-ci.org/karriereat/json-decoder.svg?branch=master)](https://travis-ci.org/karriereat/json-decoder)
3+
![](https://github.com/karriereat/json-decoder/workflows/test/badge.svg)
4+
![](https://github.com/karriereat/json-decoder/workflows/lint/badge.svg)
45
[![codecov](https://codecov.io/gh/karriereat/json-decoder/branch/master/graph/badge.svg)](https://codecov.io/gh/karriereat/json-decoder)
5-
[![StyleCI](https://styleci.io/repos/89163851/shield?branch=master)](https://styleci.io/repos/89163851)
6+
67

78
# JsonDecoder for PHP
89

0 commit comments

Comments
 (0)