Skip to content

Commit 1ba9ecd

Browse files
chore: auto-sync
1 parent 028d73d commit 1ba9ecd

10 files changed

Lines changed: 47 additions & 37 deletions

File tree

.busted

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
rawset(_G, "_TEST", true)
2+
13
return {
24
_all = {
35
ROOT = { "tests" },
46
pattern = "%.test%.lua$",
57
},
6-
}
8+
}

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*.{sh,bash,zsh}]
4+
indent_style = space
5+
indent_size = 2
6+
switch_case_indent = true
7+
space_redirects = true

.github/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"package": "timeutil",
3+
"os": ["linux"],
4+
"version-files": []
5+
}

.github/release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
".": {
44
"release-type": "simple",
55
"initial-version": "0.1.0",
6-
"extra-files": ["src/timeutil.c", "types/timeutil.d.lua"]
6+
"extra-files": []
77
}
88
}
99
}

.github/workflows/ci.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,10 @@ on:
88
branches: [main]
99
workflow_dispatch:
1010
inputs:
11-
linux:
12-
description: "Linux"
11+
test:
12+
description: "Test"
1313
type: boolean
1414
default: true
15-
macos:
16-
description: "macOS"
17-
type: boolean
18-
default: true
19-
windows:
20-
description: "Windows"
21-
type: boolean
22-
default: true
23-
stylua:
24-
description: "StyLua"
25-
type: boolean
26-
default: false
2715
luacheck:
2816
description: "Luacheck"
2917
type: boolean
@@ -36,10 +24,6 @@ on:
3624
description: "Markdownlint"
3725
type: boolean
3826
default: false
39-
tests:
40-
description: "Tests"
41-
type: boolean
42-
default: false
4327
release-please:
4428
description: "Release Please"
4529
type: boolean
@@ -61,18 +45,13 @@ jobs:
6145
ci:
6246
uses: BlueLua/.github/.github/workflows/ci.yml@main
6347
secrets: inherit
64-
# prettier-ignore
6548
with:
66-
linux: ${{ inputs.linux || github.event_name != 'workflow_dispatch' }}
67-
macos: ${{ inputs.macos || github.event_name != 'workflow_dispatch' }}
68-
windows: ${{ inputs.windows || github.event_name != 'workflow_dispatch' }}
49+
test-linux: ${{ github.event_name == 'workflow_dispatch' && inputs.test || true }}
6950

70-
tests: ${{ inputs.tests || false }}
71-
stylua: ${{ inputs.stylua || false }}
72-
luacheck: ${{ inputs.luacheck || false }}
73-
markdownlint: ${{ inputs.markdownlint || false }}
51+
luacheck: ${{ inputs.luacheck || false }}
7452
lua-language-server: ${{ inputs.lua-language-server || false }}
53+
markdownlint: ${{ inputs.markdownlint || false }}
7554

76-
release-please: ${{ inputs.release-please || false }}
77-
publish-dev: ${{ inputs.publish-dev || false }}
55+
release-please: ${{ inputs.release-please || false }}
56+
publish-dev: ${{ inputs.publish-dev || false }}
7857
publish-release: ${{ inputs.publish-release || false }}

.gitignore

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
build/
2-
*.rock
1+
# Compilation Artifacts (C Extensions)
32
*.o
3+
*.a
44
*.so
5-
*.dll
65
*.dylib
6+
*.dll
7+
*.lib
8+
build/
9+
10+
# LuaRocks & Package Managers
11+
*.rock
12+
13+
# Editor and OS Specific
14+
.DS_Store
15+
.vscode/
16+
*.swp

.luacheckrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include_files = { "src/**/*.lua" }
2+
exclude_files = { "**/*.d.lua" }
3+
globals = { "_TEST" }

.luarc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"workspace": {
33
"library": [
4-
"~/.local/share/lua/types/busted/library",
5-
"~/.local/share/lua/types/luassert/library",
4+
"~/.local/share/lua/types/busted",
5+
"~/.local/share/lua/types/luassert"
66
]
77
}
88
}

.stylua.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
indent_type = "Spaces"
22
indent_width = 2
33
column_width = 120
4+
call_parentheses = "Input"
5+
sort_requires.enabled = false

timeutil-scm-1.rockspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ dependencies = {
1616
build = {
1717
type = "builtin",
1818
modules = {
19-
timeutil = {
20-
sources = { "src/timeutil.c" },
19+
["timeutil"] = {
20+
sources = {
21+
"src/timeutil.c",
22+
},
2123
},
2224
["timeutil.types/timeutil"] = "types/timeutil.d.lua",
2325
},

0 commit comments

Comments
 (0)