Merge pull request 'Initial Woodpecker CI setup' (#4) from feat/woodpecker-initial into master
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/lint Pipeline was successful
Details
Reviewed-on: #4
This commit is contained in:
commit
249e836fd6
|
@ -16,3 +16,6 @@ indent_size = 2
|
|||
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
|
||||
[*.yml]
|
||||
indent_size = 2
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
pipeline:
|
||||
lint:
|
||||
image: ghcr.io/lunarmodules/luacheck:v0.26.1
|
||||
group: lint
|
||||
commands:
|
||||
- apk add just
|
||||
- just check-lua
|
||||
when:
|
||||
path:
|
||||
include: [".woodpecker/lint.yml", "*.lua"]
|
||||
|
||||
style:
|
||||
image: alpine:edge # Stylua is only available on edge repository for now
|
||||
group: lint
|
||||
commands:
|
||||
- apk add just stylua
|
||||
- just check-format
|
||||
when:
|
||||
path:
|
||||
include: [".woodpecker/lint.yml", "*.lua"]
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
A project to generate Teal types definitions for the Awesome WM based on the API documentation.
|
||||
|
||||
[![status-badge](https://woodpecker.aireone.xyz/api/badges/Aire-One/awesomewm.d.tl/status.svg)](https://woodpecker.aireone.xyz/Aire-One/awesomewm.d.tl)
|
||||
# Dependencies
|
||||
|
||||
Project dependencies :
|
||||
|
|
9
justfile
9
justfile
|
@ -1,15 +1,14 @@
|
|||
lua_version := "5.4"
|
||||
lua_bin := "lua" + lua_version
|
||||
lua := lua_bin + " -l set_paths"
|
||||
|
||||
rocks_tree := "lua_modules"
|
||||
rockspec_file := "rockspecs/awesomewm.d.tl-dev-1.rockspec"
|
||||
|
||||
lua_bin := `command -v lua5.4`
|
||||
lua := lua_bin + " -l set_paths"
|
||||
luarocks := `command -v luarocks`
|
||||
|
||||
lua_targets := `find src/ -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
|
||||
|
||||
install:
|
||||
{{ luarocks }} \
|
||||
luarocks \
|
||||
--lua-version {{ lua_version }} \
|
||||
install \
|
||||
--tree {{ rocks_tree }} \
|
||||
|
|
|
@ -24,8 +24,7 @@ log:info(
|
|||
-- log:info(inspect { items })
|
||||
-- end
|
||||
|
||||
local page = crawler.fetch(
|
||||
properties.base_url .. "/widgets/awful.widget.button.html"
|
||||
)
|
||||
local page =
|
||||
crawler.fetch(properties.base_url .. "/widgets/awful.widget.button.html")
|
||||
local items = scraper.get_doc_from_page(page)
|
||||
log:info(inspect { items })
|
||||
|
|
Loading…
Reference in New Issue