Skip to content

Commit e8cca79

Browse files
committed
update: add github tests workflow
1 parent 759050d commit e8cca79

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: tests
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
run-tests:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
os: [ ubuntu-latest ]
12+
php: [ 8.2, 8.3, 8.4 ]
13+
laravel: [ 10.*, 11.* ]
14+
stability: [ prefer-lowest, prefer-stable ]
15+
16+
name: tests P${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} (Laravel ${{ matrix.laravel }})
17+
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v4
21+
22+
- name: setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
extensions: sqlite, pdo_sqlite, pdo
27+
28+
- name: install dependencies
29+
run: |
30+
composer install --no-interaction --prefer-dist
31+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
32+
composer update --${{ matrix.stability }} --no-interaction --prefer-dist --optimize-autoloader
33+
34+
- name: execute tests
35+
run: vendor/bin/pest --ci

0 commit comments

Comments
 (0)