-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 988 Bytes
/
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
36
37
38
name: 'Tests'
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pest:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php: [ "8.1", "8.2" ]
laravel: [ "^9.0", "^10.0" ]
dependency-version: [ prefer-lowest, prefer-stable ]
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: 👀 Checkout
uses: actions/checkout@v3
- name: 🪄 Setup
uses: ./.github/actions/setup
with:
php-version: ${{ matrix.php }}
- name: 🔮 Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: 🕵️♂️ Run Pest Tests
run: composer test