Skip to content

Fix workflow for nova #5

Fix workflow for nova

Fix workflow for nova #5

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: Add Nova key
run: composer config http-basic.nova.laravel.com $LARAVEL_NOVA_USERNAME $LARAVEL_NOVA_LICENSE_KEY
env:
LARAVEL_NOVA_USERNAME: ${{ secret.LARAVEL_NOVA_USERNAME }}
LARAVEL_NOVA_LICENSE_KEY: ${{ secret.LARAVEL_NOVA_LICENSE_KEY }}
- 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.2', '8.3']
steps:

Check failure on line 48 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
- 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: Add Nova key
run: composer config http-basic.nova.laravel.com $LARAVEL_NOVA_USERNAME $LARAVEL_NOVA_LICENSE_KEY
env:
LARAVEL_NOVA_USERNAME: ${{ secret.LARAVEL_NOVA_USERNAME }}
LARAVEL_NOVA_LICENSE_KEY: ${{ secret.LARAVEL_NOVA_LICENSE_KEY }}
- 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