Skip to content

Cleanup/tasks 1.3 1.4 - #29

Merged
csontosati merged 7 commits into
mainfrom
cleanup/tasks-1.3-1.4
Sep 9, 2026
Merged

csontosati merged 7 commits into
mainfrom
cleanup/tasks-1.3-1.4

Conversation

@csontosati

Copy link
Copy Markdown
Owner

Title

Purge orphaned views (Tasks 1.3 & 1.4) and add containerized test workflow

Description

This PR resolves issues #7 and #8 as part of the epic: pre-migration cleanup, removing dead and unused views ahead of the Avalonia migration. In addition, it introduces a containerized Docker build configuration for local development and CI testing.

Changes

1. Orphaned View Removal (Tasks 1.3 & 1.4)

2. Containerized CI & Docker Support

  • Added multi-stage Dockerfile:
    • test stage: Builds and executes the full DAL + BL test suites inside .NET 10 on Linux.
    • android-build stage: Installs OpenJDK 17 and maui-android workload for headless Android compilation checks.
    • apk-export stage: Scratch stage for exporting the compiled .apk.
  • Added .dockerignore to keep build contexts lightweight (excluding bin/, obj/, SQLite .db files, test artifacts).
  • Updated .github/workflows/ci.yml to run containerized test jobs with GitHub Actions cache (type=gha).

Verification

  • Spun up and verified locally in container using Podman (podman build --target test & podman run):
    • GameLib.DAL.Tests: 29/29 Passed
    • GameLib.BL.Tests: 13/13 Passed
    • Total: 42/42 tests passing (0 failures, 0 regressions)

Closes #7
Closes #8

Closes #7 — Delete GameEditView.xaml and GameEditView.xaml.cs (dead mockup)
Closes #8 — Delete LibraryGameDetailView.xaml and LibraryGameDetailView.xaml.cs (unused template)

Also removed the corresponding MauiXaml entry for LibraryGameDetailView from GameLib.App.csproj.
- Dockerfile (multi-stage):
  * 'test' stage: restores, builds, and runs DAL + BL xUnit tests
    inside the container (build fails if any test fails)
  * 'android-build' stage: installs maui-android workload + JDK,
    compiles Debug APK headlessly on Linux (no emulator needed)
  * 'apk-export' stage: scratch image exposing only the .apk for CI artifact extraction

- .dockerignore: excludes git history, IDE files, bin/obj, SQLite DBs,
  and test results from the build context

- .github/workflows/ci.yml: split into two parallel jobs:
  * 'test': builds the 'test' Docker stage (runs xUnit inside)
  * 'android-build': builds 'apk-export' stage, uploads APK as artifact
  Both jobs share per-scope GHA layer cache for fast reruns.
@csontosati
csontosati merged commit 8412495 into main Sep 9, 2026
4 checks passed
@csontosati
csontosati deleted the cleanup/tasks-1.3-1.4 branch September 9, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task 1.4] Purge Orphaned View: LibraryGameDetailView [Task 1.3] Purge Orphaned View: GameEditView

1 participant