You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# luacheck
2
2
3
-
A luacheck GitHub Action that runs in Docker. **No setup, instant run** — luacheck is pre-installed (Alpine + apk), so jobs start immediately. Self-contained, no external image dependencies.
3
+
A luacheck GitHub Action that runs in Docker with a Lua entry point for custom scripts. luacheck and Lua 5.1 are pre-installed (Alpine + apk), so jobs start immediately.
4
4
5
5
## Usage
6
6
@@ -28,7 +28,7 @@ jobs:
28
28
annotate: warning # or "error" — emits GitHub annotations on PRs
29
29
```
30
30
31
-
See this repo's [Luacheck workflow](.github/workflows/luacheck.yml) for usage examples (luacheck-only, test-script-only, and both).
31
+
See this repo's [Luacheck workflow](.github/workflows/luacheck.yml) for usage examples (luacheck-only, custom-script-only, and both).
32
32
33
33
### Luacheck + script that modifies repo
34
34
@@ -37,8 +37,8 @@ See this repo's [Luacheck workflow](.github/workflows/luacheck.yml) for usage ex
fail_fast: false # run both even if luacheck fails
43
43
```
44
44
@@ -51,10 +51,10 @@ See this repo's [Luacheck workflow](.github/workflows/luacheck.yml) for usage ex
51
51
| `args` | `""` | Extra luacheck CLI arguments (see below) |
52
52
| `config` | `""` | URL to custom `.luacheckrc` |
53
53
| `annotate` | `none` | `none`, `warning`, or `error` — show issues as PR annotations (incompatible with `-qq`/`-qqq`) |
54
-
| `test_script` | `""` | URL or path (relative to `path`, or absolute) to a Lua script to run after luacheck. Runs in the working directory and can modify repo files (e.g., code generation scripts). |
55
-
| `test_args` | `"."` | Arguments passed to the test script |
54
+
| `custom_script` | `""` | URL or path (relative to `path`, or absolute) to a Lua script to run after luacheck. Runs in the working directory and can modify repo files (e.g., code generation scripts). |
55
+
| `custom_args` | `"."` | Arguments passed to the custom script |
| `fail_fast` | `false` | When true, exit on first failure. When false, run both luacheck and script, then exit with failure if any failed. |
57
+
| `fail_fast` | `false` | When true, exit on first failure. When false, run both luacheck and the custom script, then exit with failure if any failed. |
0 commit comments