mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
35 lines
742 B
YAML
35 lines
742 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: ['7.4', '8.0']
|
|
|
|
name: PHP ${{ matrix.php }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: exif
|
|
|
|
- name: Install PHP 7 dependencies
|
|
run: composer update --no-interaction --no-progress
|
|
if: "matrix.php < 8"
|
|
|
|
- name: Install PHP 8 dependencies
|
|
run: composer update --ignore-platform-req=php --no-interaction --no-progress
|
|
if: "matrix.php >= 8"
|
|
|
|
- name: Unit Tests
|
|
run: php ./vendor/bin/pest
|