Skip to content

Commit 43724db

Browse files
committed
test against PHP nightly
- build against PHP nightly on PR and daily schedule - use setup-php for linux builds (which drops Alpine builds)
1 parent 0b76126 commit 43724db

File tree

2 files changed

+46
-13
lines changed

2 files changed

+46
-13
lines changed

Diff for: .github/workflows/build.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,23 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php: ['8.0', '8.1', '8.2', '8.3']
19-
os: ['debian', 'alpine']
20-
container:
21-
image: ghcr.io/open-telemetry/opentelemetry-php-instrumentation/php:${{ matrix.php }}-${{ matrix.os }}-debug
2219

2320
steps:
24-
- uses: actions/checkout@v4
25-
- name: Build
26-
run: |
27-
phpize
28-
./configure
29-
make
30-
- name: Test
31-
env:
32-
TEST_PHP_ARGS: "-q" #do not try to submit failures
33-
run: make test TESTS=--show-diff
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
- name: Build
28+
run: |
29+
phpize
30+
./configure
31+
make
32+
- name: Test
33+
env:
34+
TEST_PHP_ARGS: "-q" #do not try to submit failures
35+
run: make test TESTS=--show-diff
3436

3537
macos:
3638
runs-on: macos-latest

Diff for: .github/workflows/nightly.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and test against PHP nightly
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ main ]
7+
schedule:
8+
- cron: '37 5 * * *'
9+
10+
defaults:
11+
run:
12+
working-directory: ext
13+
14+
jobs:
15+
nightly:
16+
if: github.repository == 'open-telemetry/opentelemetry-php-instrumentation'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: 8.4
23+
- name: Build
24+
run: |
25+
phpize
26+
./configure
27+
make
28+
- name: Test
29+
env:
30+
TEST_PHP_ARGS: "-q"
31+
run: make test TESTS=--show-diff

0 commit comments

Comments
 (0)