Skip to content

Fix missing include directory in extension #114

Fix missing include directory in extension

Fix missing include directory in extension #114

Workflow file for this run

name: Tests
on:
# TODO(jubianchi): Remove this once bors is available
pull_request:
push:
branches:
- 'master'
# TODO(jubianchi): Uncomment this once bors is available
# - 'staging'
# - 'trying'
tags:
jobs:
test:
name: Test on ${{ matrix.id }} with ${{ matrix.php }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- id: linux-x64
os: ubuntu-18.04
php: 8.0
allow_failure: false
- id: linux-x64
os: ubuntu-18.04
php: 8.1
allow_failure: false
- id: macos-x64
os: macos-latest
php: 8.0
allow_failure: false
- id: macos-x64
os: macos-latest
php: 8.1
allow_failure: false
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Checkout code
uses: actions/checkout@v2
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
- name: Configure
run: |
make ext/configure
- name: Build
run: |
make ext/all || ${{ matrix.allow_failure }}
- name: Run tests (phpt)
run: |
make ext/test || ${{ matrix.allow_failure }}
- name: Run examples
run: |
make ext/examples || ${{ matrix.allow_failure }}
- name: Run tests (unit)
run: |
make test-unit || ${{ matrix.allow_failure }}
- name: Run examples (OO interface)
run: |
make test-examples || ${{ matrix.allow_failure }}
- name: Run documentation examples (OO interface)
run: |
make test-doc-examples || ${{ matrix.allow_failure }}
- name: Archive test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: results-${{ matrix.id }}-${{ matrix.php }}
retention-days: 3
path: |
ext/tests/**/*.diff
ext/tests/**/*.exp
ext/tests/**/*.out