Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions .github/workflows/build_ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,41 @@ jobs:
- "apps.comics.tests"
- "apps.characters.tests"
- "snowsune.tests"
- "" # Empty string runs all tests (default Django behavior)
- "" # Empty string runs all tests

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"

- name: Install dependencies
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev # Install dev dependencies from Pipfile

- name: Install and build npm apps
run: |
cd apps/rp_scheduler
pnpm install
pnpm build

- name: Run tests for ${{ matrix.test_target || 'all apps' }}
run: |
if [ -n "${{ matrix.test_target }}" ]; then
Expand All @@ -55,8 +73,8 @@ jobs:

- name: Test Summary
run: |
echo "Test matrix completed for ${{ matrix.test_target || 'all apps' }}"
echo "📊 Matrix strategy ensures all apps are tested individually and together"
echo "Test matrix completed for ${{ matrix.test_target || 'all apps' }}"
echo "Matrix strategy ensures all apps are tested individually and together"

formatblack:
name: Black Formatter
Expand Down Expand Up @@ -94,6 +112,22 @@ jobs:
fetch-depth: 0
submodules: true

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Build npm apps
run: |
cd apps/rp_scheduler
pnpm install
pnpm build

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "apps/rp_scheduler"]
path = apps/rp_scheduler
url = https://github.com/MasQueElite/rp_scheduler.git
1 change: 1 addition & 0 deletions apps/rp_scheduler
Submodule rp_scheduler added at 327a5e
2 changes: 2 additions & 0 deletions snowsune/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"apps.notifications", # Centralized notification system
"apps.thank_yous", # Thank yous management app
"apps.quotes", # Quotes scroller app
"apps.rp_scheduler", # RP Scheduler app
]

MIDDLEWARE = [
Expand Down Expand Up @@ -189,6 +190,7 @@
BASE_DIR / "apps/characters/static", # Characters have their own static files too
BASE_DIR / "apps/comics/static", # Comics
BASE_DIR / "apps/thank_yous/static", # Thank Yous
BASE_DIR / "apps/rp_scheduler/static", # RP Scheduler Svelte app
]

# Media Paths (things like profile pictures and such are uploaded here)
Expand Down
1 change: 1 addition & 0 deletions snowsune/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
path("characters/", include("apps.characters.urls")),
path("quotes/", include("apps.quotes.urls")),
path("users/", include("apps.users.urls")),
path("rp/", include("apps.rp_scheduler.urls")),
# SEO
path(
"sitemap.xml",
Expand Down
Loading