2021-05-22 00:46:13 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux_tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
2022-04-08 17:48:12 +00:00
|
|
|
php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
|
2021-05-22 00:46:13 +00:00
|
|
|
|
|
|
|
name: PHP ${{ matrix.php }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php }}
|
|
|
|
|
|
|
|
- name: Clone simpletest
|
|
|
|
run: git clone --depth=50 https://github.com/ezyang/simpletest.git
|
|
|
|
|
|
|
|
- name: Configure simpletest
|
|
|
|
run: cp test-settings.travis.php test-settings.php
|
|
|
|
|
|
|
|
- name: Execute Unit tests
|
|
|
|
run: php tests/index.php
|