Compare commits
2 Commits
ebf9a4c766
...
44686975f4
Author | SHA1 | Date |
---|---|---|
Aire-One | 44686975f4 | |
Aire-One | b2d65fdc40 |
17
.cspell.json
17
.cspell.json
|
@ -1,17 +1,34 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
||||
"version": "0.2",
|
||||
"useGitignore": true,
|
||||
"ignorePaths": [".git"],
|
||||
"enableGlobDot": true,
|
||||
"words": [
|
||||
"Aire-One",
|
||||
"apikey",
|
||||
"capi",
|
||||
"constructorfct",
|
||||
"dbus",
|
||||
"drawin",
|
||||
"dryrun",
|
||||
"fatalwarnings",
|
||||
"fullscreen",
|
||||
"hasitem",
|
||||
"JohnnyMorganz",
|
||||
"keygrabber",
|
||||
"ldoc",
|
||||
"leafo",
|
||||
"luacheck",
|
||||
"luacheckrc",
|
||||
"luadoc",
|
||||
"luarocks",
|
||||
"lunarmodules",
|
||||
"mktemp",
|
||||
"mousebindings",
|
||||
"mousegrabber",
|
||||
"rockspec",
|
||||
"rockspecs",
|
||||
"staticfct",
|
||||
"stylua"
|
||||
]
|
||||
|
|
|
@ -13,3 +13,6 @@ insert_final_newline = true
|
|||
|
||||
[*.{json,yaml}]
|
||||
indent_size = 2
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
|
|
@ -41,3 +41,11 @@ jobs:
|
|||
- uses: streetsidesoftware/cspell-action@v6
|
||||
with:
|
||||
incremental_files_only: false
|
||||
|
||||
rockspec:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: leafo/gh-actions-lua@v9
|
||||
- uses: leafo/gh-actions-luarocks@v4
|
||||
- run: luarocks lint awesome-slot-dev-1.rockspec
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
name: Upload rock to LuaRocks
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
affected:
|
||||
uses: lunarmodules/.github/.github/workflows/list_affected_rockspecs.yml@main
|
||||
upload:
|
||||
needs: affected
|
||||
if: >-
|
||||
${{
|
||||
github.repository == 'Aire-One/awesome-slot' &&
|
||||
( github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/') ) &&
|
||||
needs.affected.outputs.rockspecs
|
||||
}}
|
||||
uses: lunarmodules/.github/.github/workflows/upload_to_luarocks.yml@main
|
||||
with:
|
||||
rockspecs: ${{ needs.affected.outputs.rockspecs }}
|
||||
secrets:
|
||||
apikey: ${{ secrets.LUAROCKS_APIKEY }}
|
|
@ -0,0 +1,24 @@
|
|||
install:
|
||||
luarocks install --local --only-deps awesome-slot-dev-1.rockspec
|
||||
|
||||
luacheck:
|
||||
luacheck .
|
||||
|
||||
stylua:
|
||||
stylua --check .
|
||||
|
||||
ldoc-dryrun:
|
||||
$(eval TMP := $(shell mktemp -d))
|
||||
ldoc --fatalwarnings --dir $(TMP) .
|
||||
rm -rf $(TMP)
|
||||
|
||||
cspell:
|
||||
cspell lint .
|
||||
|
||||
lint-rockspec:
|
||||
luarocks lint awesome-slot-dev-1.rockspec
|
||||
|
||||
lint: luacheck stylua ldoc-dryrun cspell lint-rockspec
|
||||
|
||||
ldoc:
|
||||
ldoc .
|
|
@ -1,3 +1,4 @@
|
|||
rockspec_format = "3.0"
|
||||
package = "awesome-slot"
|
||||
version = "dev-1"
|
||||
source = {
|
||||
|
@ -8,6 +9,11 @@ description = {
|
|||
detailed = "A declarative API to connect signals for the AwesomeWM.",
|
||||
homepage = "https://github.com/Aire-One/awesome-slot",
|
||||
license = "*** please specify a license ***",
|
||||
labels = {
|
||||
"awesome",
|
||||
"signals",
|
||||
"declarative",
|
||||
},
|
||||
}
|
||||
build = {
|
||||
type = "builtin",
|
||||
|
|
Loading…
Reference in New Issue