Fix stubs routes #62
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-version: '8.2' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to Laravel Nova | |
run: composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_LICENSE_KEY} | |
env: | |
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} | |
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }} | |
- 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-app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to Laravel Nova | |
run: composer config http-basic.nova.laravel.com ${NOVA_USERNAME} ${NOVA_LICENSE_KEY} | |
env: | |
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }} | |
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }} | |
- 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: Run tests | |
run: composer test |