Skip to content

Commit cc0d6a4

Browse files
authored
Merge pull request #37 from clue-labs/tests
Support PHP 8 and use GitHub actions for continuous integration (CI)
2 parents a96904d + 4ed31ea commit cc0d6a4

File tree

4 files changed

+41
-36
lines changed

4 files changed

+41
-36
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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
- 8.0
17+
- 7.4
18+
- 7.3
19+
- 7.2
20+
- 7.1
21+
- 7.0
22+
- 5.6
23+
- 5.5
24+
- 5.4
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
extensions: sqlite3
32+
- run: composer install
33+
- run: vendor/bin/phpunit --coverage-text
34+
if: ${{ matrix.php >= 7.3 }}
35+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
36+
if: ${{ matrix.php < 7.3 }}

.travis.yml

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

README.md

Lines changed: 4 additions & 2 deletions
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/).
@@ -398,7 +400,7 @@ $ composer require clue/reactphp-sqlite:^1.0.1
398400
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
399401

400402
This project aims to run on any platform and thus only requires `ext-sqlite3` and
401-
supports running on legacy PHP 5.4 through current PHP 7+.
403+
supports running on legacy PHP 5.4 through current PHP 8+.
402404
It's *highly recommended to use PHP 7+* for this project.
403405

404406
This project is implemented as a lightweight process wrapper around the `ext-sqlite3`

0 commit comments

Comments
 (0)