Skip to content

Fix getTranslation if model don't have translations #10

Fix getTranslation if model don't have translations

Fix getTranslation if model don't have translations #10

Workflow file for this run

name: Novius CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint-php:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-versions: '8.2'
- name: Checkout code
uses: actions/checkout@v3
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Lint PHP code via Laravel Pint
run: composer run-script lint
test-php:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
php-versions: ['8.1', '8.2']
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Lint PHP code via Laravel Pint
run: composer run-script test