mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-24 23:49:09 +00:00
b6fdee5360
Run the continuous integration tests of the currently-supported PHP versions on the legacy branch. This will not test php5.x-master branch changes under PHP v5.x environments, but may help minimize introducing bugs in the legacy branch.
34 lines
602 B
YAML
34 lines
602 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- php5.x-master
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 17 * * *'
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
|
|
fail-fast: false
|
|
name: PHP ${{ matrix.php }}
|
|
|
|
steps:
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
|
run: bash tests/ci.sh
|
|
env:
|
|
CI_PHP_VERSION: ${{ matrix.php }}
|