-
-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (35 loc) · 1.31 KB
/
php-tests.yml
File metadata and controls
45 lines (35 loc) · 1.31 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
45
name: PHP (8.4) Tests
on:
push:
branches: [master, support/php-8.4]
pull_request:
branches: [master, support/php-8.4]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Configure compressor (Release)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build compressor shared library
run: cmake --build build --target compressor -j 8
- name: Copy compressor shared library into src/bin
run: |
mkdir -p src/bin
cp build/libcompressor.so src/bin/libcompressor.so
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: curl, ffi
coverage: none
ini-values: ffi.enable=1
- name: Validate composer.json and composer.lock
run: composer validate --no-check-all --strict
- name: Install Dependencies with Composer
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Run tests
run: composer test:all