forked from mrcjkb/lua-typecheck-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
41 lines (41 loc) · 1.04 KB
/
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
34
35
36
37
38
39
40
41
---
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."
required: true
default: Warning
type: choice
options:
- Error
- Warning
- Information
- Hint
directories:
description: "The directories to lint (relative to the repository root)."
required: true
default: |
lua
type: string
configpath:
description: "Path to a luarc.json config file."
required: false
type: string
runs:
using: "composite"
steps:
- uses: cachix/install-nix-action@v24
- run: |
nix profile install --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