czyzby / wesnoth-wml-linter Goto Github PK
View Code? Open in Web Editor NEWA GitHub Action that verifies Wesnoth WML files
A GitHub Action that verifies Wesnoth WML files
Add action parameters that specify the verified file path and a custom Wesnoth branch or tag to verify against.
Add support for wmllint
spellchecking via hunspell
.
This message looks rather concerning:
Cloning Wesnoth 1.16.10.
Cloning into '/wesnoth'...
fatal: specify directories rather than patterns. If your directory really has any of '*?[]\' in it, pass --skip-checks
Wesnoth repository is ready.
It doesn't actually cause any failures, though, so I guess it's more just of an annoyance than anything... still, it might be worth trying to pass the --skip-checks
flag to whatever printed that message anyways, though?
Renaming the default branch of the repository to latest
will make it intuitive to pull the latest version of the action within GitHub workflows.
Implement GitHub action that verifies WML files.
In wesnoth/wesnoth@c1a074e, @Elvish-Hunter added a check to wmllint
validate rank=
values, as I had requested in wesnoth/wesnoth#7224. This check generally works well enough when I'm running wmllint
locally, however, when run as part of this action, it will print a warning like this:
"_main.cfg", line 10: rank for mainline campaigns should be a multiple of 5 between 0 and 299 (included)
However, the add-on in question that I'm checking isn't supposed to be a mainline campaign, but rather, it's an add-on. See:
https://github.com/cooljeanius/A_Little_Adventure/actions/runs/7363399849/job/20042827417
It'd be useful to checkout at least data/core from the wesnoth repo and add that to the wmllint invocation so it knows about the core macros etc. That way the action user doesn't have to do that. Could perhaps be optional if it's costly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.