Skip to content

Commit 08a6881

Browse files
committed
use GitHub actions instead of Travis
1 parent 9c380c4 commit 08a6881

File tree

4 files changed

+30
-24
lines changed

4 files changed

+30
-24
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.gitattributes export-ignore
1+
.github export-ignore
22
.gitignore export-ignore
33
.travis.yml export-ignore
44
composer.json export-ignore

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
php: [8.0, 8.1]
12+
13+
name: PHP ${{ matrix.php }} tests
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php }}
19+
coverage: none
20+
21+
- run: composer install --no-progress --prefer-dist
22+
- run: vendor/bin/tester tests -s
23+
- if: failure()
24+
uses: actions/upload-artifact@v2
25+
with:
26+
name: output
27+
path: tests/**/output

.travis.yml

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

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[GitHub API](https://developer.github.com/v3/) easy access library. Works with cURL, stream or any of your HTTP client.
22

3-
[![Build Status](https://travis-ci.org/milo/github-api.svg?branch=master)](https://travis-ci.org/milo/github-api)
4-
[![Downloads last 30 days](https://img.shields.io/packagist/dm/milo/github-api.svg)](https://packagist.org/packages/milo/github-api)
3+
[![Downloads this Month](https://img.shields.io/packagist/dm/milo/github-api.svg)](https://packagist.org/packages/milo/github-api)
4+
[![Tests](https://github.com/milo/github-api/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/milo/github-api/actions)
55

66

77
# Installation

0 commit comments

Comments
 (0)