Skip to content

Commit 1816cc2

Browse files
Merge pull request #19 from laracasts/laravel-nova
wip
2 parents f44ec8d + 1edeed4 commit 1816cc2

File tree

89 files changed

+1734
-399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1734
-399
lines changed

.github/actions/setup/action.yml

+13
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ inputs:
1010
description: The PHP extensions you want to install.
1111
required: false
1212
default: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, redis, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp, :php-psr
13+
nova-email:
14+
description: The email used to authenticate Nova.
15+
required: true
16+
nova-password:
17+
description: The password used to authenticate Nova.
18+
required: true
1319

1420
runs:
1521
using: composite
@@ -54,3 +60,10 @@ runs:
5460
key: composer-cache-${{ hashFiles('**/composer.lock') }}
5561
path: ${{ steps.composer-cache-dir.outputs.dir }}
5662
restore-keys: composer-cache-
63+
64+
- name: Authenticate Nova
65+
env:
66+
NOVA_EMAIL: ${{ inputs.nova-email }}
67+
NOVA_PASSWORD: ${{ inputs.nova-password }}
68+
run: composer config http-basic.nova.laravel.com "$NOVA_EMAIL" "$NOVA_PASSWORD"
69+
shell: bash

.github/workflows/laravel-pint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
with:
2121
php-version: '8.3'
2222
php-extensions: 'json, dom, curl, libxml, mbstring'
23+
nova-email: ${{ secrets.NOVA_EMAIL }}
24+
nova-password: ${{ secrets.NOVA_PASSWORD }}
2325

2426
- name: Install Laravel Pint
2527
run: composer global require laravel/pint

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: ./.github/actions/setup
3131
with:
3232
php-version: '8.3'
33+
nova-email: ${{ secrets.NOVA_EMAIL }}
34+
nova-password: ${{ secrets.NOVA_PASSWORD }}
3335

3436
- name: Install Project Dependencies
3537
run: composer install -q --no-interaction --no-progress

composer.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
"license": "MIT",
77
"require": {
88
"php": "^8.2",
9+
"ext-redis": "*",
910
"laravel/framework": "^11.9",
1011
"laravel/jetstream": "^5.1",
12+
"laravel/nova": "4.34.3",
1113
"laravel/sanctum": "^4.0",
1214
"laravel/tinker": "^2.9",
13-
"livewire/livewire": "^3.0",
14-
"ext-redis": "*"
15+
"livewire/livewire": "^3.0"
1516
},
1617
"require-dev": {
1718
"fakerphp/faker": "^1.23",
@@ -66,5 +67,11 @@
6667
}
6768
},
6869
"minimum-stability": "stable",
69-
"prefer-stable": true
70+
"prefer-stable": true,
71+
"repositories": [
72+
{
73+
"type": "composer",
74+
"url": "https://nova.laravel.com"
75+
}
76+
]
7077
}

0 commit comments

Comments
 (0)