Skip to content

Commit

Permalink
Merge pull request #3 from codecoz/dev
Browse files Browse the repository at this point in the history
Added Github Workflow for tests.
  • Loading branch information
aimreza authored Sep 16, 2024
2 parents 1b83e7d + 3851d23 commit fe44c7e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Laravel Package Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<x-aim-admin::layout.login>
<x-aim-admin::layout.auth-card>
<x-slot name="logo">
<img src="{{ asset('logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
<img src="{{ asset('img/logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
</x-slot>
<form method="POST" action="{{ route('login') }}">
@csrf
Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<x-aim-admin::layout.login>
<x-aim-admin::layout.auth-card>
<x-slot name="logo">
<img src="{{ asset('logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
<img src="{{ asset('img/logo.png') }}" alt="Logo" style="width: 150px; height: auto;">
</x-slot>
<div class="text-center">
<h3 class="mb-3">User Registration</h3>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/sidebar/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

Expand Down

0 comments on commit fe44c7e

Please sign in to comment.