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

Commit 6b31b1a

Browse files
Merge remote-tracking branch 'origin/dev'
2 parents 2d22696 + cc26fde commit 6b31b1a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Configure and Run Tests Before Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
release:
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: Validate composer.json and composer.lock
29+
run: composer validate --strict
30+
31+
- name: Set up PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php-version }}
35+
extensions: mbstring, intl, curl, dom, fileinfo
36+
tools: composer
37+
38+
- name: Cache Composer packages
39+
id: composer-cache
40+
uses: actions/cache@v3
41+
with:
42+
path: vendor
43+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
44+
restore-keys: |
45+
${{ runner.os }}-php-
46+
47+
- name: Install dependencies
48+
run: composer install --prefer-dist --no-progress
49+
50+
- name: Run Tests
51+
run: composer run-script test

0 commit comments

Comments
 (0)