Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 5f994a8

Browse files
committed
fixes error and make main branch be updated with dev
1 parent 3506b25 commit 5f994a8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,45 @@ permissions:
1212
contents: write
1313

1414
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
php-version: [8.2, 8.3, 8.4]
21+
include:
22+
- php-version: 8.3
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php-version }}
32+
extensions: mbstring, intl, curl, dom, fileinfo
33+
tools: composer
34+
35+
- name: Cache Composer packages
36+
id: composer-cache
37+
uses: actions/cache@v3
38+
with:
39+
path: vendor
40+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-php-
43+
44+
- name: Install dependencies
45+
run: composer install --prefer-dist --no-progress
46+
47+
- name: Run Tests
48+
run: composer run-script Tests
49+
1550
push_to_main:
1651
runs-on: ubuntu-latest
52+
needs: test
53+
if: ${{ success() }}
1754

1855
steps:
1956
- name: Checkout repository

0 commit comments

Comments
 (0)