Skip to content

Commit c5b2e6e

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent a96904d commit c5b2e6e

File tree

4 files changed

+39
-35
lines changed

4 files changed

+39
-35
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.gitattributes export-ignore
2+
/.github/workflows/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
44
/examples/ export-ignore
55
/phpunit.xml.dist export-ignore
66
/phpunit.xml.legacy export-ignore

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
- windows-latest
15+
php:
16+
- 7.4
17+
- 7.3
18+
- 7.2
19+
- 7.1
20+
- 7.0
21+
- 5.6
22+
- 5.5
23+
- 5.4
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
extensions: sqlite3
31+
- run: composer install
32+
- run: vendor/bin/phpunit --coverage-text
33+
if: ${{ matrix.php >= 7.3 }}
34+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
35+
if: ${{ matrix.php < 7.3 }}

.travis.yml

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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# clue/reactphp-sqlite [![Build Status](https://travis-ci.org/clue/reactphp-sqlite.svg?branch=master)](https://travis-ci.org/clue/reactphp-sqlite)
1+
# clue/reactphp-sqlite
2+
3+
[![CI status](https://github.com/clue/reactphp-sqlite/workflows/CI/badge.svg)](https://github.com/clue/reactphp-sqlite/actions)
24

35
Async SQLite database, lightweight non-blocking process wrapper around file-based database extension (`ext-sqlite3`),
46
built on top of [ReactPHP](https://reactphp.org/).

0 commit comments

Comments
 (0)