-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 999 Bytes
/
run-tests.yml
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
name: "Run Tests"
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
stability: [prefer-stable]
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:9.*" "imanghafoori/laravel-nullable:^1.2"
"imanghafoori/laravel-smart-facades:^1.0" "orchestra/testbench:~6.0" "mockery/mockery:*" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
# - name: Execute tests
# run: vendor/bin/phpunit