Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ updates:
actions:
patterns:
- "*"

- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
go:
patterns:
- "*"
48 changes: 25 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches: [main]

permissions: {}

Expand All @@ -16,40 +15,43 @@ jobs:
test:
name: test
runs-on: ubuntu-24.04
timeout-minutes: 4
timeout-minutes: 10
permissions:
contents: read # checkout do codigo do repositorio
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion GEMINI.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
Loading