-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
239 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"words": [ | ||
"Aire-One", | ||
"berlam", | ||
"constructorfct", | ||
"dbus", | ||
"drawin", | ||
"dryrun", | ||
"fatalwarnings", | ||
"freedesktop", | ||
"JohnnyMorganz", | ||
"keygrabber", | ||
"ldoc", | ||
"luacheck", | ||
"luacheckrc", | ||
"luadoc", | ||
"luarocks", | ||
"mktemp", | ||
"mousegrabber", | ||
"rockspec", | ||
"staticfct", | ||
"stylua", | ||
"upower", | ||
"wibox" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 3 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{json,yaml}] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build doc | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lunarmodules/[email protected] | ||
- uses: actions/upload-pages-artifact@v3 | ||
id: deployment | ||
with: | ||
path: doc/ | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- uses: actions/deploy-pages@v4 | ||
id: deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
luacheck: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lunarmodules/luacheck@v1 | ||
|
||
stylua: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: JohnnyMorganz/stylua-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: v0.20.0 | ||
args: --check . | ||
|
||
ldoc: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lunarmodules/[email protected] | ||
with: | ||
args: --fatalwarnings . | ||
|
||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
doc/ | ||
/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
std = "min" | ||
|
||
include_files = { | ||
".busted", | ||
".luacheckrc", | ||
"*.rockspec", | ||
"src/", | ||
} | ||
|
||
read_globals = { | ||
"awesome", | ||
"button", | ||
"dbus", | ||
"drawable", | ||
"drawin", | ||
"key", | ||
"keygrabber", | ||
"mousegrabber", | ||
"selection", | ||
"tag", | ||
"window", | ||
"table.unpack", | ||
"math.atan2", | ||
} | ||
|
||
globals = { | ||
"screen", | ||
"mouse", | ||
"root", | ||
"client", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
indent_type = "Spaces" | ||
indent_width = 3 | ||
call_parentheses = "None" | ||
|
||
[sort_requires] | ||
enabled = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"Lua.runtime.path": [ | ||
"/usr/share/awesome/lib/?.lua", | ||
"/usr/share/awesome/lib/?/init.lua" | ||
], | ||
"[lua]": { | ||
"editor.defaultFormatter": "JohnnyMorganz.stylua" | ||
}, | ||
"stylua.targetReleaseVersion": "latest", | ||
"files.associations": { | ||
".busted": "lua", | ||
".luacheckrc": "lua", | ||
"*.rockspec": "lua", | ||
"config.ld": "lua" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
install: | ||
luarocks --local build | ||
|
||
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-battery_widget-dev-1.rockspec | ||
|
||
lint: luacheck stylua ldoc-dryrun cspell lint-rockspec | ||
|
||
ldoc: | ||
ldoc . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters