Ciertamente necesitamos más propietarios de código. Si desea dar el cheque verde al código de cierto idioma, agregue como propietario. Si se aprueba, me fusionaré. No puedo revisar todo esto. :)
Las implementaciones en TypeScript, Rust o Zig son reservadas y mantenidas por el propio Primeagen.
Para otros idiomas, recuerde: Primero ven, primer servicio. Si existe una implementación en su lenguaje de elección, ¡contribuya a ella!
Si no, comience por copiar la carpeta lang_template:
cp -r .github/LANG_TEMPLATE/ < your_folder_name >
Viene con:
├── .gitignore # ignores all editor-specific or os-specific files, add additional stuff for your language
├── Dockerfile # for Docker builds
└── Makefile # convenient commands runner (make <cmd>) under *NIX systems
Ahora, los comandos convenientes Runner ( .make.cmd <cmd>
) en Windows son completamente opcionales y reside en la raíz de .github/
General:
help
: emite todos los comandos disponibles, igual que ejecutar la make
o make.cmd
sin argumentosSin Docker:
clean
fmt
lint
test
: debe ejecutar todas las pruebas disponiblesready
- debe ejecutar FMT, prueba de hormigas de pelusaEstibador:
docker-build
-Hace la construccióndocker-ready
: ejecuta la imagen de compilación y ejecuta los comandos fmt
, lint
, test
Inside Esto supone que hay un Makefile
en la raíz del directorio de idiomas.
# without docker
make clean
make fmt
make lint
make test
make ready # runs fmt, lint and test
# docker, assuming there's a Dockerfile
make docker-build # makes the build
make docker-ready # runs fmt, lint and test in the built image
Esto supone que hay un make.cmd
en la raíz del directorio de idiomas.
@ rem without docker
.make.cmd clean
.make.cmd fmt
.make.cmd lint
.make.cmd test
.make.cmd ready @ rem runs fmt, lint and test
@ rem docker, assuming there's a Dockerfile
.make.cmd docker-build @ rem makes the build
.make.cmd docker-ready @ rem runs fmt, lint and test in the built image