Compare commits
21 Commits
575af384ac
...
1.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| fffcf8347b | |||
| 2b3325af91 | |||
|
|
c9071a3bef | ||
| 3cc06c2465 | |||
| 1243a93020 | |||
|
|
78747e1f64 | ||
| 84f08b548e | |||
| 462bce226d | |||
|
|
2c3ae4ee86 | ||
| f4d6277646 | |||
| 5e47287593 | |||
| dd5eb6782d | |||
| 0312e1dbea | |||
| b29ea655ba | |||
|
|
8d06374bef | ||
| 5ca0afc385 | |||
| cc5a0de05d | |||
| fe84e20645 | |||
| 2ba8881f3b | |||
| ce5c97290f | |||
|
|
0c7407c11b |
@@ -3,40 +3,55 @@ name: Laravel
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
laravel-tests:
|
laravel-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@v2
|
- uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "8.2"
|
php-version: "8.4"
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: Install PHP Dependencies
|
||||||
run: composer install -q --no-interaction --no-progress --prefer-dist
|
run: composer install -q --no-interaction --no-progress --prefer-dist
|
||||||
|
|
||||||
- name: Generate key
|
- name: Generate key
|
||||||
run: php artisan key:generate
|
run: php artisan key:generate
|
||||||
|
|
||||||
- name: Directory Permissions
|
- name: Directory Permissions
|
||||||
run: chmod -R 777 storage bootstrap/cache
|
run: chmod -R 777 storage bootstrap/cache
|
||||||
|
|
||||||
- name: Create Database
|
- name: Create Database
|
||||||
run: |
|
run: |
|
||||||
mkdir -p database
|
mkdir -p database
|
||||||
touch database/database.sqlite
|
touch database/database.sqlite
|
||||||
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
|
||||||
|
- name: Install Node dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Run migrations
|
||||||
|
env:
|
||||||
|
DB_CONNECTION: sqlite
|
||||||
|
DB_DATABASE: database/database.sqlite
|
||||||
|
run: php artisan migrate --force
|
||||||
|
|
||||||
|
- name: Run PHPUnit
|
||||||
env:
|
env:
|
||||||
DB_CONNECTION: sqlite
|
DB_CONNECTION: sqlite
|
||||||
DB_DATABASE: database/database.sqlite
|
DB_DATABASE: database/database.sqlite
|
||||||
run: vendor/bin/phpunit
|
run: vendor/bin/phpunit
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: "16.x"
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
- name: Run Vue tests
|
|
||||||
env:
|
|
||||||
LARAVEL_BYPASS_ENV_CHECK: "1"
|
|
||||||
run: npm run test
|
|
||||||
@@ -11,7 +11,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/renovatebot/renovate:43.2.1
|
container: ghcr.io/renovatebot/renovate:43.2.4
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -19,6 +19,6 @@ jobs:
|
|||||||
working-directory: ${{ gitea.workspace }}
|
working-directory: ${{ gitea.workspace }}
|
||||||
env:
|
env:
|
||||||
RENOVATE_CONFIG_FILE: "renovate-config.json"
|
RENOVATE_CONFIG_FILE: "renovate-config.json"
|
||||||
LOG_LEVEL: "debug"
|
LOG_LEVEL: "info"
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
||||||
15
.github/dependabot.yml
vendored
15
.github/dependabot.yml
vendored
@@ -1,15 +0,0 @@
|
|||||||
# To get started with Dependabot version updates, you'll need to specify which
|
|
||||||
# package ecosystems to update and where the package manifests are located.
|
|
||||||
# Please see the documentation for all configuration options:
|
|
||||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
- package-ecosystem: "composer"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
63
.github/workflows/dependency-update.yml
vendored
63
.github/workflows/dependency-update.yml
vendored
@@ -1,63 +0,0 @@
|
|||||||
name: Dependency Update
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 20 * * 1" # Mondays 20:00 UTC
|
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
tools: composer:v2
|
|
||||||
|
|
||||||
- name: Install current deps
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
composer install --no-interaction --no-progress
|
|
||||||
|
|
||||||
- name: Update deps
|
|
||||||
run: |
|
|
||||||
npm update
|
|
||||||
composer update --no-interaction --no-progress
|
|
||||||
|
|
||||||
- name: Detect changes
|
|
||||||
id: changes
|
|
||||||
run: |
|
|
||||||
if git diff --quiet; then
|
|
||||||
echo "changed=false" >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# - name: Create PR
|
|
||||||
# if: steps.changes.outputs.changed == 'true'
|
|
||||||
# uses: peter-evans/create-pull-request@v6
|
|
||||||
# with:
|
|
||||||
# commit-message: "Dependency update"
|
|
||||||
# title: "Dependency update"
|
|
||||||
# body: "Automated dependency update."
|
|
||||||
# branch: "bot/dependency-update"
|
|
||||||
# delete-branch: true
|
|
||||||
|
|
||||||
- name: Commit and push
|
|
||||||
if: steps.changes.outputs.changed == 'true'
|
|
||||||
run: |
|
|
||||||
git config user.name "github-actions[bot]"
|
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git commit -am "Dependency update"
|
|
||||||
git push origin HEAD:main
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -260,3 +260,5 @@ phpcbf.phar
|
|||||||
### PHPStorm ###
|
### PHPStorm ###
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
### Deployment ###
|
||||||
|
/deploy.sh
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ class HomeController extends Controller
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$posts = Post::query()->orderBy('created_at', 'desc')->limit(4)->get();
|
// $posts = Post::query()->orderBy('created_at', 'desc')->limit(4)->get();
|
||||||
$workshops = Workshop::query()->where('starts_at', '>', now())->where('status', '!=', 'private')->orderBy('starts_at', 'asc')->limit(4)->get();
|
$workshops = Workshop::query()->where('starts_at', '>', now())->where('status', '!=', 'private')->orderBy('starts_at', 'asc')->limit(4)->get();
|
||||||
|
|
||||||
return view('home', [
|
return view('home', [
|
||||||
'posts' => $posts,
|
// 'posts' => $posts,
|
||||||
'workshops' => $workshops,
|
'workshops' => $workshops,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,5 +123,6 @@ 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'),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,11 +1,24 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"config:base"
|
"extends": [
|
||||||
],
|
"config:recommended"
|
||||||
"packageRules": [
|
],
|
||||||
{
|
"automerge": true,
|
||||||
"updateTypes": ["minor", "patch", "pin", "digest"],
|
"platformAutomerge": true,
|
||||||
"automerge": true
|
"ignoreTests": true,
|
||||||
}
|
"packageRules": [
|
||||||
]
|
{
|
||||||
}
|
"matchUpdateTypes": [
|
||||||
|
"patch"
|
||||||
|
],
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchUpdateTypes": [
|
||||||
|
"minor",
|
||||||
|
"major"
|
||||||
|
],
|
||||||
|
"automerge": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -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,6 @@
|
|||||||
</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>
|
<div>Made with ❤️ © {{ date('Y') }} STEMMechanics • v{{ config('app.version') }}</div>
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user