Add scopeWithLocale #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |