-
Notifications
You must be signed in to change notification settings - Fork 135
51 lines (42 loc) · 1.17 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: tests
on:
- push
jobs:
build:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
# fail-fast: true
matrix:
php-version: [8.1, 8.2, 8.3]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: xdebug
- name: Install Dependencies (Composer)
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: composer update --no-interaction --no-progress
- name: Install Dependencies (NPM)
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: npm install
- name: Prepare
run: |
php artisan config:clear
npm run dev
- name: Execute Tests
run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Send Coverage To Coveralls
uses: coverallsapp/github-action@v2