Skip to content

Fix inconsistencies #78

Fix inconsistencies

Fix inconsistencies #78

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
env:
APP_ENV: test
jobs:
laravel:
name: Laravel 8 (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['7.4', '8.0', '8.1']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v3
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
extensions: ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite, fileinfo
env:
update: true
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-
- name: Install Composer dependencies
run: composer update --no-progress
- name: Set up Laravel environment
run: |
cp .env.testing .env
php artisan config:cache
touch database/database.sqlite
php artisan migrate --seed --env=testing --force
- name: Run functional tests
run: vendor/bin/codecept run Functional