Skip to content

Commit

Permalink
test against PHP nightly
Browse files Browse the repository at this point in the history
- build against PHP nightly on PR and daily schedule
- use setup-php for linux builds (which drops Alpine builds)
  • Loading branch information
brettmc committed Sep 6, 2024
1 parent 0b76126 commit 6036ace
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ jobs:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
os: ['debian', 'alpine']
container:
image: ghcr.io/open-telemetry/opentelemetry-php-instrumentation/php:${{ matrix.php }}-${{ matrix.os }}-debug

steps:
- uses: actions/checkout@v4
- name: Build
run: |
phpize
./configure
make
- name: Test
env:
TEST_PHP_ARGS: "-q" #do not try to submit failures
run: make test TESTS=--show-diff
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Build
run: |
phpize
./configure
make
- name: Test
env:
TEST_PHP_ARGS: "-q" #do not try to submit failures
run: make test TESTS=--show-diff

macos:
runs-on: macos-latest
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and test against PHP nightly

on:
push:
pull_request:
branches: [ main ]
schedule:
- cron: '37 5 * * *'

defaults:
run:
working-directory: ext

jobs:
nightly:
if: github.repository == 'open-telemetry/opentelemetry-php-instrumentation'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.4
- name: Build and test
env:
TEST_PHP_ARGS: "-q"
run: |
phpize
./configure
make
make test TESTS=--show-diff

0 comments on commit 6036ace

Please sign in to comment.