Commit Graph

5 Commits

Author SHA1 Message Date
79ebed5b01 fix: repair CI/CD pipeline for Gitea Actions
Some checks failed
CI / lint (push) Successful in 1m57s
CI / test (push) Successful in 1m17s
CI / build (push) Successful in 21s
CI / docker (push) Failing after 2m27s
- Remove actions/upload-artifact@v4 (not supported on Gitea, GHESNotSupportedError)
- Add job permissions (packages: write, contents: read)
- Fix master branch condition (github.ref_name compatible with Gitea)
- Fix Docker login: use gitea.actor + GITHUB_TOKEN instead of reserved GITEA_ secrets
- Lowercase image tags per Docker spec (mrixs/mrixscraft-server)
- Sync docker-compose.yml image reference
2026-06-01 17:01:44 +03:00
7b3b97c5f8 ci: add Go modules/build cache, fix master branch triggers
Some checks failed
CI / lint (push) Successful in 11m11s
CI / test (push) Successful in 11m1s
CI / build (push) Failing after 5m40s
CI / docker (push) Has been skipped
- Add actions/cache@v4 for GOMODCACHE and GOCACHE on lint/test/build
- Switch from setup-go built-in cache to explicit cache control
- Fix branch refs: main → master for PR, artifact, and docker jobs
- Use registry-based Docker layer caching (mode=max)
- Extract GO_VERSION env var for single-point version management
2026-05-30 20:49:23 +03:00
69eb6ddd5f fix: add go mod download before go vet and tests
Some checks failed
CI / lint (push) Failing after 11s
CI / build (push) Has been skipped
CI / test (push) Has been skipped
CI / docker (push) Has been skipped
- Explicitly run go mod download so modules are available for go vet
- Remove cache: true (unnecessary now that modules are explicitly fetched)
2026-05-30 19:48:30 +03:00
08aaa7a3c8 fix: enable Go module cache in CI workflow
Some checks failed
CI / lint (push) Failing after 7s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / docker (push) Has been skipped
- Add cache: true to actions/setup-go@v5 so modules persist between steps
- Fixes "missing go.sum entry" error on go vet step
2026-05-30 19:45:52 +03:00
7ad02cb1b2 feat: implement email validation, CI/CD pipeline, migration history, and web templates
Some checks failed
CI / lint (push) Failing after 21s
CI / build (push) Has been skipped
CI / test (push) Has been skipped
CI / docker (push) Has been skipped
Email validation:
- Replace @/. check with net/mail.ParseAddress on register
- Add size limit check (max 254 chars, RFC 5321)

CI/CD Pipeline:
- Add .gitea/workflows/ci.yml (lint → test → build → docker push)
- Registry: gitea.mrixs.me/Mrixs/MrixsCraft-server
- Push only on main branch

Database:
- Add migrations/002_migration_history.sql (tracking applied migrations)
- Add migrations/README.md (manual apply instructions)

Web Templates:
- Add base.html with Minecraft-themed layout (dark + green accent)
- Add index.html, login.html, register.html with POST forms
- Rewrite templates.go for data-driven rendering with pageData struct
- Fallback placeholder preserved when templates dir missing
2026-05-30 00:39:51 +03:00