-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (31 loc) · 904 Bytes
/
ci-cd.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
39
40
41
# GitHub Action for Testing Laravel Package
name: CI & Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
laravel-ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ["8.2", "8.3"]
steps:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, dom, fileinfo
coverage: xdebug #optional
- name: Checkout
uses: actions/checkout@v4
- name: Show php version
run: php -v
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Static Analysis via PHPStan
run: composer analyse
- name: Test via PHPUnit
run: composer test