-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 992 Bytes
/
test.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
name: Test
on: [ push ]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: :psr, json, dom, curl, libxml, mbstring
tools: composer:v2
coverage: xdebug
- name: Install dependencies
run: composer update --no-interaction --no-progress --prefer-dist --prefer-stable
- name: Test
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./coverage.xml
- name: Upload coverage reports
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: logs
path: |
vendor/orchestra/testbench-core/laravel/storage/logs
!vendor/**/.gitignore