-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Added better GitHub workflows
- Loading branch information
1 parent
08b9a9c
commit da48f5a
Showing
12 changed files
with
66 additions
and
26 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/lintcommit.yml → .github/workflows/commitlint.yml
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,5 +1,5 @@ | ||
# Reference: https://commitlint.js.org/guides/ci-setup | ||
name: lintcommit | ||
name: Commitlint | ||
|
||
on: [pull_request] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: luacheck | ||
name: Luacheck | ||
|
||
on: | ||
pull_request: {} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# TODO: (you) - To enable this worflow, you must create a "Personal Access Token". | ||
# | ||
# Reference: https://github.com/nvim-neorocks/sample-luarocks-plugin?tab=readme-ov-file#generating-a-pat-personal-access-token | ||
# | ||
name: Release To GitHub | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
name: Release To GitHub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
release-type: simple |
5 changes: 4 additions & 1 deletion
5
.github/workflows/release.yml → .github/workflows/release-luarocks.yml
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
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,4 +1,4 @@ | ||
name: test | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
|
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
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,24 +1,33 @@ | ||
rockspec_format = '3.0' | ||
package = 'plugin-template' | ||
version = 'scm-1' | ||
rockspec_format = "3.0" | ||
package = "plugin-template" | ||
version = "scm-1" | ||
|
||
local user = "ColinKennedy" | ||
|
||
description = { | ||
homepage = "https://github.com/" .. user .. "/" .. package, | ||
labels = { "neovim", "neovim-plugin" }, | ||
license = "MIT", | ||
summary = 'A "Best Practices" Neovim plugin template', | ||
} | ||
|
||
test_dependencies = { | ||
'busted >= 2.0, < 3.0', | ||
'lua >= 5.1, < 6.0', | ||
'nlua >= 0.2, < 1.0', | ||
'nui.nvim >= 0.2, < 1.0', | ||
"busted >= 2.0, < 3.0", | ||
"lua >= 5.1, < 6.0", | ||
"nlua >= 0.2, < 1.0", | ||
"nui.nvim >= 0.2, < 1.0", | ||
} | ||
|
||
-- Reference: https://github.com/luarocks/luarocks/wiki/test#test-types | ||
test = { | ||
type = "busted", | ||
flags = {"--helper", "spec/minimal_init.lua"}, | ||
flags = { "--helper", "spec/minimal_init.lua" }, | ||
} | ||
|
||
source = { | ||
url = 'git://github.com/ColinKennedy/' .. package, | ||
url = "git://github.com/" .. user .. "/" .. package, | ||
} | ||
|
||
build = { | ||
type = 'builtin', | ||
type = "builtin", | ||
} |
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