Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Archive documentation wiki within the repo #36

Archive documentation wiki within the repo

Archive documentation wiki within the repo #36

Workflow file for this run

name: CI
on:
- push
- pull_request
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
php54:
name: PHP 5.4
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP 5.4
uses: shivammathur/setup-php@v2
with:
php-version: "5.4"
- run: rm composer.json composer.lock
- run: composer require --dev php-parallel-lint/php-parallel-lint=1.3.2
- run: composer exec -- parallel-lint . --exclude external --exclude vendor
php56:
name: PHP 5.6
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP 5.6
uses: shivammathur/setup-php@v2
with:
php-version: "5.6"
- run: rm composer.json composer.lock
- run: composer require --dev php-parallel-lint/php-parallel-lint=1.3.2
- run: composer exec -- parallel-lint . --exclude external --exclude vendor
php:
strategy:
fail-fast: false
matrix:
include:
# Has php7.1-8.0 pre-installed
# https://github.com/actions/virtual-environments/blob/ubuntu18/20210318.0/images/linux/Ubuntu1804-README.md#php
- os: ubuntu-18.04
php: "7.2"
- os: ubuntu-18.04
php: "7.3"
# Has php7.4-8.2 pre-installed
# https://github.com/actions/runner-images/blob/releases/ubuntu20/20221212/images/linux/Ubuntu2004-Readme.md#php
- os: ubuntu-20.04
php: "7.4"
- os: ubuntu-20.04
php: "8.0"
- os: ubuntu-20.04
php: "8.1"
# Use "PHP 0.0" as job name instead of "php (ubuntu-, 0.0)"
name: PHP ${{ matrix.php }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php }}
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- run: composer install
- run: composer test
npm:
# Uses Node.js 14 by default
# https://github.com/actions/virtual-environments/blob/ubuntu20/20210318.0/images/linux/Ubuntu2004-README.md#nodejs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm test