diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index aca7b33..9f62ec4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -10,8 +10,8 @@ body: - type: input id: version attributes: - label: Python / Docker version - description: What version of Python or Docker are you using? + label: Slime version and OS + description: Output of `slime version`, and your operating system (or Docker image tag). validations: required: true - type: textarea diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d45f8d4..70dc388 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,14 @@ updates: actions: patterns: - "*" + + - package-ecosystem: gomod + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + go: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a58422c..c3e6860 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: [main] pull_request: - branches: [main] permissions: {} @@ -16,7 +15,7 @@ jobs: test: name: test runs-on: ubuntu-24.04 - timeout-minutes: 4 + timeout-minutes: 10 permissions: contents: read # checkout do codigo do repositorio steps: @@ -24,32 +23,35 @@ jobs: with: persist-credentials: false - - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - python-version: "3.12" - cache: "pip" - cache-dependency-path: | - requirements.txt - pyproject.toml + go-version-file: go.mod + cache-dependency-path: go.sum - - name: Install Python dependencies + - name: gofmt run: | - pip install -r requirements.txt - pip install --no-deps -e . + unformatted=$(gofmt -l .) + if [ -n "$unformatted" ]; then + echo "::error::Arquivos fora do gofmt:" + echo "$unformatted" + exit 1 + fi - - name: Lint - run: make lint + - name: go vet + run: go vet ./... - - name: Unit & Integration Tests (Parallel) - run: pytest -n auto --dist worksteal -m "unit or integration" --ignore=tests/test_gui_dynamic_form.py + # O -race precisa de CGO; o binário distribuído continua sem CGO (passos abaixo). + - name: go test + run: go test -race ./... - - name: Install system dependencies (Qt) - run: | - sudo apt-get -o Acquire::ForceIPv4=true -o Acquire::http::Timeout=10 -o Acquire::Retries=3 update -qq - sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=l apt-get -o Acquire::ForceIPv4=true -o Acquire::http::Timeout=10 -o Acquire::Retries=3 install -y --no-install-recommends libegl1 libxkbcommon-x11-0 + - name: build linux + env: + CGO_ENABLED: "0" + run: go build -trimpath -o /dev/null ./... - - name: E2E Tests (CLI, TUI, GUI & Full Pipeline) + - name: build windows env: - QT_QPA_PLATFORM: offscreen - run: make test-e2e + CGO_ENABLED: "0" + GOOS: windows + GOARCH: amd64 + run: go build -trimpath -o /dev/null ./cmd/slime diff --git a/AGENTS.md b/AGENTS.md index 441ada1..86bb3de 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,4 +3,4 @@ Este repositório utiliza o `GEMINI.md` como especificação canônica das instruções de agente. Consulte: -- [GEMINI.md](file:///home/luis/slime-RPG/GEMINI.md) +- [GEMINI.md](GEMINI.md) diff --git a/GEMINI.md b/GEMINI.md index 03e7dff..46c5da8 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -1,6 +1,6 @@ # Diretrizes do Projeto: Slime RPG (Go Edition) -Contexto específico da branch de portabilidade para Go (`feat/go-port`). As regras gerais de trabalho ficam no `GEMINI.md` global; aqui entra o que vale para este projeto. +Contexto específico deste projeto, que é a versão Go do Slime RPG. A versão Python foi aposentada e fica na branch `legacy/python`. As regras gerais de trabalho ficam no `GEMINI.md` global; aqui entra o que vale para este projeto. ## Visão Geral da Arquitetura (Go) Este projeto é uma ferramenta modular desenvolvida em Go para extrair, mascarar variáveis (códigos protegidos), traduzir e reinjetar textos em jogos e formatos estruturados (RPG Maker, Wolf RPG, CSV, JSON).