Skip to content

Commit e1e7115

Browse files
committed
Add github actions test
1 parent 73ab528 commit e1e7115

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-tests:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
php-versions: ['7.4', '8.0', '8.1']
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup PHP
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: ${{ matrix.php-versions }}
18+
- name: Install Dependencies
19+
run: composer update --no-interaction --prefer-source
20+
- name: Create Database
21+
run: |
22+
mkdir -p database
23+
touch database/database.sqlite
24+
- name: Execute tests (Unit and Feature tests) via PHPUnit
25+
env:
26+
DB_CONNECTION: sqlite
27+
DB_DATABASE: database/database.sqlite
28+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)