-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.4 KB
/
ci.yml
File metadata and controls
54 lines (43 loc) · 1.4 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
46
47
48
49
50
51
52
53
54
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup PHP
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: ${{ matrix.php-version }}
extensions: curl, swoole
tools: phpunit
coverage: none
# utopia-php/pools -> utopia-php/telemetry declares ext-opentelemetry and
# ext-protobuf, but only the no-op telemetry path is used at runtime, so the
# packages are installed without loading the extensions (loading them
# alongside swoole segfaults the test process on PHP 8.4).
- name: Install dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: "--ignore-platform-req=ext-opentelemetry --ignore-platform-req=ext-protobuf"
- name: Audit dependencies
run: composer audit
- name: Check formatting
run: composer format:check
- name: Analyze
run: composer analyze
- name: Check refactors
run: composer refactor:check
- name: Test
run: composer test