Skip to content

Commit fe44c7e

Browse files
authored
Merge pull request #3 from codecoz/dev
Added Github Workflow for tests.
2 parents 1b83e7d + 3851d23 commit fe44c7e

4 files changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Laravel Package Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.2'
20+
21+
- name: Install Dependencies
22+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
23+
24+
- name: Create Database
25+
run: |
26+
mkdir -p database
27+
touch database/database.sqlite
28+
29+
- name: Execute tests via PHPUnit
30+
env:
31+
DB_CONNECTION: sqlite
32+
DB_DATABASE: database/database.sqlite
33+
run: vendor/bin/phpunit

resources/views/auth/login.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<x-aim-admin::layout.login>
22
<x-aim-admin::layout.auth-card>
33
<x-slot name="logo">
4-
<img src="{{ asset('logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
4+
<img src="{{ asset('img/logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
55
</x-slot>
66
<form method="POST" action="{{ route('login') }}">
77
@csrf

resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<x-aim-admin::layout.login>
22
<x-aim-admin::layout.auth-card>
33
<x-slot name="logo">
4-
<img src="{{ asset('logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
4+
<img src="{{ asset('img/logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
55
</x-slot>
66
<div class="text-center">
77
<h3 class="mb-3">User Registration</h3>

resources/views/components/sidebar/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{{-- Sidebar brand logo --}}
1010
<a href="{{URL('/')}}" class="brand-link {{config('aim-admin.layout_class.brand', '')}}">
11-
<img src="{{asset('logo.png')}}" alt="Aim Admin" class="brand-image img-circle elevation-3">
11+
<img src="{{asset('img/logo.png')}}" alt="Aim Admin" class="brand-image img-circle elevation-3">
1212
<span class="brand-text font-weight-light">{{$applicationName}}</span>
1313
</a>
1414

0 commit comments

Comments
 (0)