Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e3853ae61 | |||
| ff218ddcfa | |||
| 07f45530c1 | |||
|
|
b80081e616 | ||
| 4af6061100 | |||
| 10f5799da2 | |||
| fffcf8347b | |||
| 2b3325af91 | |||
|
|
c9071a3bef | ||
| 3cc06c2465 |
@@ -6,52 +6,50 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
laravel-tests:
|
laravel-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
container:
|
||||||
- uses: actions/checkout@v4
|
image: ghcr.io/shivammathur/node:latest
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@v2
|
steps:
|
||||||
with:
|
- uses: actions/checkout@v4
|
||||||
php-version: "8.4"
|
|
||||||
|
|
||||||
- name: Copy .env
|
- name: Verify tools
|
||||||
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
run: |
|
||||||
|
php -v
|
||||||
|
composer -V
|
||||||
|
node -v
|
||||||
|
npm -v
|
||||||
|
|
||||||
- name: Install PHP Dependencies
|
- name: Install PHP deps
|
||||||
run: composer install -q --no-interaction --no-progress --prefer-dist
|
run: composer install -q --no-interaction --no-progress --prefer-dist
|
||||||
|
|
||||||
- name: Generate key
|
- name: Install Node deps
|
||||||
run: php artisan key:generate
|
run: npm ci
|
||||||
|
|
||||||
- name: Directory Permissions
|
- name: Copy env
|
||||||
run: chmod -R 777 storage bootstrap/cache
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
|
|
||||||
- name: Create Database
|
- name: Generate key
|
||||||
run: |
|
run: php artisan key:generate
|
||||||
mkdir -p database
|
|
||||||
touch database/database.sqlite
|
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Create DB
|
||||||
uses: actions/setup-node@v2
|
run: |
|
||||||
with:
|
mkdir -p database
|
||||||
node-version: "20"
|
touch database/database.sqlite
|
||||||
|
|
||||||
- name: Install Node dependencies
|
- name: Migrate
|
||||||
run: npm ci
|
env:
|
||||||
|
DB_CONNECTION: sqlite
|
||||||
|
DB_DATABASE: database/database.sqlite
|
||||||
|
run: php artisan migrate --force
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build assets
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
DB_CONNECTION: sqlite
|
DB_CONNECTION: sqlite
|
||||||
DB_DATABASE: database/database.sqlite
|
DB_DATABASE: database/database.sqlite
|
||||||
run: php artisan migrate --force
|
run: vendor/bin/phpunit
|
||||||
|
|
||||||
- name: Run PHPUnit
|
|
||||||
env:
|
|
||||||
DB_CONNECTION: sqlite
|
|
||||||
DB_DATABASE: database/database.sqlite
|
|
||||||
run: vendor/bin/phpunit
|
|
||||||
@@ -11,7 +11,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/renovatebot/renovate:43.2.3
|
container: ghcr.io/renovatebot/renovate:43.2.6
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -21,4 +21,5 @@ jobs:
|
|||||||
RENOVATE_CONFIG_FILE: "renovate-config.json"
|
RENOVATE_CONFIG_FILE: "renovate-config.json"
|
||||||
LOG_LEVEL: "info"
|
LOG_LEVEL: "info"
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
|
||||||
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -260,3 +260,5 @@ phpcbf.phar
|
|||||||
### PHPStorm ###
|
### PHPStorm ###
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
### Deployment ###
|
||||||
|
/deploy.sh
|
||||||
|
|||||||
@@ -123,5 +123,7 @@ return [
|
|||||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'notice' => env('APP_NOTICE', '')
|
'notice' => env('APP_NOTICE', ''),
|
||||||
|
'version' => env('APP_VERSION', 'dev'),
|
||||||
|
'commit' => env('APP_COMMIT', ''),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
<section class="flex flex-col sm:flex-row gap-8 sm:gap-4 mb-12">
|
<section class="flex flex-col sm:flex-row gap-8 sm:gap-4 mb-12">
|
||||||
<div class="text-center sm:text-left sm:w-2/3 text-sm self-center sm:pr-8">STEMMechanics Australia acknowledges the Traditional Owners of Country throughout Australia and the continuing connection to land, cultures and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders both past, present and emerging.</div>
|
<div class="text-center sm:text-left sm:w-2/3 text-sm self-center sm:pr-8">STEMMechanics Australia acknowledges the Traditional Owners of Country throughout Australia and the continuing connection to land, cultures and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders both past, present and emerging.</div>
|
||||||
<ul class="sm:w-1/3 flex flex-col gap-0.5 text-center sm:text-left">
|
<ul class="sm:w-1/3 flex flex-col gap-0.5 text-center sm:text-left">
|
||||||
<li><h3 class="font-bold mb-2">Community</h3></li>
|
<li>
|
||||||
|
<h3 class="font-bold mb-2">Community</h3>
|
||||||
|
</li>
|
||||||
<li><a href="https://github.com/stemmechanics" class="text-sm hover:text-primary-color">GitHub</a></li>
|
<li><a href="https://github.com/stemmechanics" class="text-sm hover:text-primary-color">GitHub</a></li>
|
||||||
<li><a href="https://discord.gg/yNzk4x7mpD" class="text-sm hover:text-primary-color">Discord</a></li>
|
<li><a href="https://discord.gg/yNzk4x7mpD" class="text-sm hover:text-primary-color">Discord</a></li>
|
||||||
<li><a href="https://www.facebook.com/stemmechanics" class="text-sm hover:text-primary-color">Facebook</a></li>
|
<li><a href="https://www.facebook.com/stemmechanics" class="text-sm hover:text-primary-color">Facebook</a></li>
|
||||||
@@ -11,7 +13,9 @@
|
|||||||
<li><a href="https://youtube.com/@STEMMechanics" class="text-sm hover:text-primary-color">YouTube</a></li>
|
<li><a href="https://youtube.com/@STEMMechanics" class="text-sm hover:text-primary-color">YouTube</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="sm:w-1/3 flex flex-col gap-0.5 text-center sm:text-left">
|
<ul class="sm:w-1/3 flex flex-col gap-0.5 text-center sm:text-left">
|
||||||
<li><h3 class="font-bold mb-2">STEMMechanics</h3></li>
|
<li>
|
||||||
|
<h3 class="font-bold mb-2">STEMMechanics</h3>
|
||||||
|
</li>
|
||||||
<li><a href="{{ route('about') }}" class="text-sm hover:text-primary-color">About</a></li>
|
<li><a href="{{ route('about') }}" class="text-sm hover:text-primary-color">About</a></li>
|
||||||
<li><a href="{{ route('contact') }}" class="text-sm hover:text-primary-color">Contact Us</a></li>
|
<li><a href="{{ route('contact') }}" class="text-sm hover:text-primary-color">Contact Us</a></li>
|
||||||
<li><a href="{{ route('code-of-conduct') }}" class="text-sm hover:text-primary-color">Code of Conduct</a></li>
|
<li><a href="{{ route('code-of-conduct') }}" class="text-sm hover:text-primary-color">Code of Conduct</a></li>
|
||||||
@@ -21,6 +25,13 @@
|
|||||||
</section>
|
</section>
|
||||||
<section class="border-t border-t-gray-600 pt-8 flex justify-between text-xs items-center flex-col sm:flex-row">
|
<section class="border-t border-t-gray-600 pt-8 flex justify-between text-xs items-center flex-col sm:flex-row">
|
||||||
<div class="mb-3 sm:mb-0">@includeSVG('logo.svg', 'width:10rem;margin-top:-0.2rem;color:#DDD')</div>
|
<div class="mb-3 sm:mb-0">@includeSVG('logo.svg', 'width:10rem;margin-top:-0.2rem;color:#DDD')</div>
|
||||||
<div>Made with ❤️ © {{ date('Y') }} STEMMechanics</div>
|
@php $commit = config('app.commit'); @endphp
|
||||||
|
<div>
|
||||||
|
Made with ❤️ © {{ date('Y') }} STEMMechanics
|
||||||
|
• v{{ config('app.version') }}
|
||||||
|
@if(!empty($commit))
|
||||||
|
({{ substr($commit, 0, 10) }})
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user