1
0
mirror of https://github.com/themsaid/ibis.git synced 2025-01-17 05:28:32 +01:00

76 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2021-03-20 15:58:14 -05:00
name: CI for Ibis
on: [push, pull_request]
jobs:
php-cs-fixer:
2022-11-27 19:06:26 +01:00
runs-on: ubuntu-latest
2022-12-25 10:23:41 +01:00
strategy:
matrix:
operating-system: [ubuntu-latest]
2022-12-25 10:33:59 +01:00
php-versions: [ '8.2' ]
2022-12-25 10:23:41 +01:00
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
2021-03-20 15:58:14 -05:00
steps:
# This is required as this package does not support PHP 8 (yet)
2022-12-25 10:23:41 +01:00
- name: Setup PHP
2021-03-20 15:58:14 -05:00
uses: shivammathur/setup-php@v2
with:
2022-12-25 10:23:41 +01:00
php-version: ${{ matrix.php-versions }}
2021-03-20 15:58:14 -05:00
- name: Checkout Code
2023-12-03 09:12:44 +01:00
uses: actions/checkout@v4
2021-03-20 15:58:14 -05:00
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer Cache
2022-11-27 19:30:04 +01:00
uses: actions/cache@v3
2021-03-20 15:58:14 -05:00
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer Install
run: "composer install --no-ansi --no-interaction --no-scripts --prefer-dist"
- name: Execute PHP CS Fixer review
run: composer run csfix-review
2022-12-25 10:33:59 +01:00
check-ibis:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: [ubuntu-latest]
2023-12-03 09:12:44 +01:00
php-versions: [ '8.3', '8.2','8.1', '8.0' ]
2022-12-25 10:33:59 +01:00
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Checkout Code
2023-12-03 09:12:44 +01:00
uses: actions/checkout@v4
2022-12-25 10:33:59 +01:00
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer Cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer Install
2022-12-25 10:36:00 +01:00
run: "composer update"
2022-12-25 10:33:59 +01:00
2022-12-25 10:29:04 +01:00
- name: test Ibis execution
run: |
2022-12-25 10:42:33 +01:00
mkdir export
2022-12-25 10:33:59 +01:00
./ibis init
2022-12-25 10:47:16 +01:00
./ibis build