Skip to content

Commit 969dafa

Browse files
committed
Add CI job to run tests
1 parent 8b23f0a commit 969dafa

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Tests: MongoDB"
2+
3+
on:
4+
- pull_request
5+
6+
jobs:
7+
mongodb:
8+
name: PHP ${{ matrix.php }}
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
php:
13+
- "7.4"
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
extensions: xdebug
24+
25+
- name: Validate composer.json and composer.lock
26+
run: composer validate
27+
28+
- name: Install dependencies
29+
run: |
30+
composer install --prefer-dist --no-progress
31+
32+
- name: Run PHPUnit tests
33+
run: composer test
34+
35+
# vim:ft=yaml:et:ts=2:sw=2

0 commit comments

Comments
 (0)