nanos-lint 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/action.yml +18 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ jobs:
|
|
|
101
101
|
| `luals-version` | Version of `lua-language-server` to use | `latest` |
|
|
102
102
|
| `fail-on-error` | Fail the workflow step if diagnostics are found | `true` |
|
|
103
103
|
| `quiet` | Suppress progress messages | `false` |
|
|
104
|
+
| `cache` | Whether to cache the LuaLS binary and annotations across workflow runs | `true` |
|
|
104
105
|
|
|
105
106
|
When running inside GitHub Actions, `nanos-lint` automatically outputs **workflow annotations** (`::error` / `::warning`) that appear inline on PR diffs.
|
|
106
107
|
|
package/action.yml
CHANGED
|
@@ -38,6 +38,10 @@ inputs:
|
|
|
38
38
|
description: 'Files or directories to ignore (supports glob patterns, multiple entries can be newline or comma separated)'
|
|
39
39
|
required: false
|
|
40
40
|
default: ''
|
|
41
|
+
cache:
|
|
42
|
+
description: 'Whether to cache the LuaLS binary and annotations across workflow runs'
|
|
43
|
+
required: false
|
|
44
|
+
default: 'true'
|
|
41
45
|
|
|
42
46
|
runs:
|
|
43
47
|
using: 'composite'
|
|
@@ -47,6 +51,19 @@ runs:
|
|
|
47
51
|
with:
|
|
48
52
|
node-version: '24'
|
|
49
53
|
|
|
54
|
+
- name: Cache LuaLS binary and annotations
|
|
55
|
+
if: ${{ inputs.cache != 'false' }}
|
|
56
|
+
uses: actions/cache@v6
|
|
57
|
+
with:
|
|
58
|
+
path: |
|
|
59
|
+
~/.cache/nanos-lint
|
|
60
|
+
~/AppData/Local/nanos-lint
|
|
61
|
+
~/Library/Caches/nanos-lint
|
|
62
|
+
key: nanos-lint-${{ runner.os }}-${{ inputs.luals-version }}
|
|
63
|
+
restore-keys: |
|
|
64
|
+
nanos-lint-${{ runner.os }}-${{ inputs.luals-version }}-
|
|
65
|
+
nanos-lint-${{ runner.os }}-
|
|
66
|
+
|
|
50
67
|
- name: Run nanos-lint
|
|
51
68
|
shell: bash
|
|
52
69
|
env:
|
|
@@ -90,7 +107,7 @@ runs:
|
|
|
90
107
|
if [ -f "$ACTION_PATH/dist/cli.js" ]; then
|
|
91
108
|
node "$ACTION_PATH/dist/cli.js" "${ARGS[@]}"
|
|
92
109
|
else
|
|
93
|
-
npx --yes nanos-lint@^2.1
|
|
110
|
+
npx --yes nanos-lint@^2.6.1 "${ARGS[@]}"
|
|
94
111
|
fi
|
|
95
112
|
|
|
96
113
|
|