Skip to content

Commit 5c5adf8

Browse files
committed
Create run-tests.yml
1 parent 720c7c9 commit 5c5adf8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
php-tests:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: [8.0, 8.1]
13+
laravel: [8.*]
14+
dependency-version: [prefer-lowest, prefer-stable]
15+
os: [ubuntu-latest, windows-latest]
16+
17+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
28+
coverage: none
29+
tools: composer:v2
30+
31+
- name: Install dependencies
32+
run: |
33+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
34+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
35+
36+
- name: Execute tests
37+
run: vendor/bin/pest

0 commit comments

Comments
 (0)