-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
57 lines (45 loc) · 1.43 KB
/
livewire-tests.yml
File metadata and controls
57 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Livewire Tests
on:
push:
branches:
- master
pull_request:
branches:
- *
jobs:
unit-tests:
runs-on: ubuntu-24.04
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1
strategy:
fail-fast: false
matrix:
php: [8.2, '8.3', '8.4', '8.5']
livewire: [^3, ^4]
name: Livewire${{ matrix.livewire }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif
- name: Install dependencies
run: |
composer remove --dev --no-update larastan/larastan phpstan/phpstan-phpunit laravel/pint phpstan/phpstan-strict-rules shipmonk/phpstan-rules
composer require "livewire/livewire:${{ matrix.livewire }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-progress
- name: Update Dusk Chromedriver
run: vendor/bin/dusk-updater detect --auto-update
- name: Execute Unit Tests
run: composer test
- name: Upload Failed Screenshots
uses: actions/upload-artifact@v6
if: failure()
with:
name: screenshots
path: tests/Browser/screenshots/*