generated from empaphy/example
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.05 KB
/
tests.yml
File metadata and controls
44 lines (38 loc) · 1.05 KB
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
name: Tests
on:
push:
branches: ['main']
pull_request:
branches: ['main']
permissions:
checks: write
contents: read
issues: read
pull-requests: write
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP and Install Composer Packages
uses: ./.github/actions/setup
with:
php-version: ${{ matrix.php-version }}
- name: Run Pest
shell: bash
#language=bash
run: |
mkdir -p var/test-results
vendor/bin/pest --ci --log-junit 'var/test-reports/php${{ matrix.php-version }}.xml'
- name: Publish Pest Reports
uses: mikepenz/action-junit-report@v5
with:
check_name: 'Unit Test Report (${{ matrix.php-version }})'
report_paths: 'var/test-reports/php${{ matrix.php-version }}.xml'
if: (!cancelled())