Skip to content

Commit ee00ac3

Browse files
committed
Use Github Actions instead of travis
1 parent 320adb6 commit ee00ac3

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request: null
5+
6+
env:
7+
MONGODB_SERVER: mongodb://127.0.0.1:27017
8+
9+
jobs:
10+
phpunit:
11+
name: "PHPUnit"
12+
runs-on: "ubuntu-20.04"
13+
14+
services:
15+
mongo:
16+
image: mongo
17+
ports:
18+
- 27017:27017
19+
20+
strategy:
21+
matrix:
22+
php-version:
23+
- "7.2"
24+
- "7.3"
25+
- "7.4"
26+
- "8.0"
27+
deps:
28+
- "highest"
29+
include:
30+
- deps: "lowest"
31+
php-version: "7.2"
32+
33+
steps:
34+
- name: "Checkout"
35+
uses: "actions/checkout@v2"
36+
with:
37+
fetch-depth: 2
38+
39+
- name: "Install PHP"
40+
uses: "shivammathur/setup-php@v2"
41+
with:
42+
php-version: "${{ matrix.php-version }}"
43+
extensions: mongodb
44+
45+
- name: "Install dependencies with Composer"
46+
uses: "ramsey/composer-install@v1"
47+
with:
48+
dependency-versions: "${{ matrix.deps }}"
49+
50+
- name: "Run PHPUnit"
51+
run: "bin/phpunit -c tests"

.travis.yml

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

0 commit comments

Comments
 (0)