Skip to content

Commit 2a09b58

Browse files
committed
Add github actions workflow file
1 parent 1e04cbf commit 2a09b58

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [1.x]
6+
pull_request:
7+
branches: [1.x]
8+
9+
jobs:
10+
tests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
os: [ubuntu-latest]
16+
php: [8.2, 8.3]
17+
laravel: [11.*]
18+
include:
19+
- laravel: 11.*
20+
testbench: ^9.0
21+
22+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
33+
coverage: none
34+
35+
- name: Setup problem matchers
36+
run: |
37+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
38+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
39+
40+
- name: Install dependencies
41+
run: |
42+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
43+
composer update --prefer-stable --prefer-dist --no-interaction
44+
45+
- name: Execute tests
46+
run: vendor/bin/pest

0 commit comments

Comments
 (0)