-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (42 loc) · 1.24 KB
/
ci.yml
File metadata and controls
54 lines (42 loc) · 1.24 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: Run CI
on:
push:
branches: [ main ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
jobs:
linux-build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [8.1, 8.2, 8.3]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/ci
with:
php-version: ${{ matrix.php-version }}
token: ${{ secrets.GITHUB_TOKEN }}
windows-build:
runs-on: windows-latest
strategy:
matrix:
php-version: [8.1.26, 8.2.19, 8.3.8]
env:
LD_INCLUDE_INTEGRATION_TESTS: 1
steps:
- uses: actions/checkout@v4
- name: Install php support
run: choco install -y php --version=${{ matrix.php-version }} --force
- name: Install composer
run: choco install -y composer
# Installation must prefer source as the current open-feature/php-sdk
# includes a symlink which 7z does not want to unzip. Once this is
# fixed upstream, we can remove the source requirement.
- name: Install dependencies
run: composer install --no-progress --prefer-source
- name: Run tests
run: .\vendor\bin\phpunit