-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
33 lines (33 loc) · 984 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: 'lua-typecheck-action'
description: 'Type check and lint lua code using lua-language-server.'
author: 'Marc Jakobi'
branding:
color: 'purple'
icon: 'moon'
inputs:
checklevel:
description: "The diagnostics severity level to fail on (Error, Warning, Information or Hint)"
required: true
default: Warning
directories:
description: "The directories to lint (relative to the repository root)."
required: true
default: |
.
configpath:
description: "Path to a luarc.json config file."
required: false
runs:
using: "composite"
steps:
- uses: cachix/install-nix-action@v30
- run: |
nix profile install --quiet --accept-flake-config "${{ github.action_path }}#lua-typecheck-action"
shell: bash
- run: lua-typecheck-action
env:
INPUT_CHECKLEVEL: ${{ inputs.checklevel }}
INPUT_DIRECTORIES: ${{ inputs.directories }}
INPUT_CONFIGPATH: ${{ inputs.configpath }}
shell: bash