Skip to content

Commit 5f60b64

Browse files
feat(CI): update CI and other QoL updates (#39)
* merge actions into a single workflow * add stylua job, update action versions add version property to stylua job specify directory for stylua to check add stylua config * add housekeeping action * update supported plugin list * doc: auto-generate vimdoc * add question and bug templates --------- Co-authored-by: scottmckendry <[email protected]>
1 parent 61b2a27 commit 5f60b64

File tree

10 files changed

+177
-61
lines changed

10 files changed

+177
-61
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Bug Report
2+
description: Report a problem with cyberdream
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >
8+
Please make sure cyberdream is up to date before reporting a bug!
9+
10+
- type: textarea
11+
attributes:
12+
label: "Description"
13+
description: "What is the issue?"
14+
validations:
15+
required: true
16+
17+
- type: input
18+
attributes:
19+
label: "Neovim version?"
20+
description: |
21+
Output of `nvim --version`
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: "What should happen?"
28+
description: "A clear and concise description of what you expected to happen or what you expected to see."
29+
30+
- type: textarea
31+
attributes:
32+
label: "What happened instead?"
33+
description: "Based on the description above, what actually happened. Screenshots are helpful."
34+
validations:
35+
required: true
36+
37+
- type: textarea
38+
attributes:
39+
label: "Your configuration"
40+
description: >
41+
Minimal configuration necessary to reproduce the issue. Include any relevant plugins and settings.
42+
render: Lua
43+
value: |
44+
{
45+
"scottmckendry/cyberdream.nvim",
46+
lazy = false,
47+
priority = 1000,
48+
config = function()
49+
require("cyberdream").setup({
50+
transparent = true,
51+
italic_comments = true,
52+
hide_fillchars = true,
53+
borderless_telescope = true,
54+
})
55+
vim.cmd("colorscheme cyberdream")
56+
end,
57+
}
58+
validations:
59+
required: true

.github/ISSUE_TEMPLATE/question.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Ask a Question
2+
description: Ask a question or suggest an idea or feature
3+
labels: [question]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: "Question or Suggestion"
8+
description: "Ask a question or suggest an idea or feature"
9+
validations:
10+
required: true

.github/workflows/ci.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
on:
3+
push:
4+
5+
jobs:
6+
stylua:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Run Stylua
12+
uses: JohnnyMorganz/stylua-action@v4
13+
with:
14+
token: ${{ secrets.RELEASE_TOKEN }}
15+
version: latest
16+
args: --color always --check .
17+
18+
generate-extras:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install Neovim
24+
uses: rhysd/action-setup-vim@v1
25+
with:
26+
neovim: true
27+
version: stable
28+
29+
- name: Generate Extras
30+
run: |
31+
nvim -u NONE -E -R --headless --cmd "set rtp^=." --cmd "lua require('cyberdream.extra').generate_all_extras()" --cmd qa
32+
33+
- name: Commit changes
34+
uses: stefanzweifel/git-auto-commit-action@v5
35+
with:
36+
commit_message: "chore: generate extras"
37+
38+
generate-doc:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: panvimdoc
44+
uses: kdheepak/panvimdoc@main
45+
with:
46+
vimdoc: cyberdream
47+
version: "Neovim >= 0.9.0"
48+
titledatepattern: "%Y"
49+
demojify: true
50+
treesitter: true
51+
52+
- name: Push changes
53+
uses: stefanzweifel/git-auto-commit-action@v5
54+
with:
55+
commit_message: "doc: auto-generate vimdoc"
56+
57+
release:
58+
runs-on: ubuntu-latest
59+
needs: [generate-extras, generate-doc, stylua]
60+
if: github.ref == 'refs/heads/main'
61+
steps:
62+
- uses: google-github-actions/release-please-action@v4
63+
with:
64+
token: ${{ secrets.RELEASE_TOKEN }}
65+
release-type: simple

.github/workflows/extras.yml

-24
This file was deleted.

.github/workflows/housekeeping.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Housekeeping
2+
3+
on:
4+
issue_comment:
5+
schedule:
6+
- cron: "0 0 * * *" # once daily
7+
8+
jobs:
9+
update-issues:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.RELEASE_TOKEN }}
18+
days-before-stale: -1 # never add label automatically
19+
days-before-close: 7
20+
stale-issue-label: "waiting for op"
21+
stale-pr-label: "waiting for op"
22+
close-issue-label: "autoclosed"
23+
close-pr-label: "autoclosed"
24+
25+
remove-waiting-label:
26+
runs-on: ubuntu-latest
27+
if: github.event.sender.login != 'scottmckendry' && github.event_name == 'issue_comment'
28+
steps:
29+
- uses: mondeja/remove-labels-gh-action@v2
30+
with:
31+
token: ${{ secrets.RELEASE_TOKEN }}
32+
labels: |
33+
waiting for op

.github/workflows/release.yml

-13
This file was deleted.

.github/workflows/vimdoc.yml

-23
This file was deleted.

.stylua.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
column_width = 120
2+
indent_type = "Spaces"
3+
indent_width = 4
4+
quote_style = "AutoPreferDouble"

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@
2828
<summary><b>Supported Plugins</b></summary>
2929
<ul>
3030
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/goolord/alpha-nvim"> alpha-nvim</a></label></li>
31+
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/nvimdev/dashboard-nvim"> dashboard-nvim</a></label></li>
3132
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/lewis6991/gitsigns.nvim"> gitsigns.nvim</a></label></li>
3233
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/Zeioth/heirline-components.nvim"> heirline-components.nvim</a></label></li>
34+
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/lukas-reineke/indent-blankline.nvim"> indent-blankline.nvim</a></label></li>
3335
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/folke/lazy.nvim"> lazy.nvim</a></label></li>
3436
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/ggandor/leap.nvim"> leap.nvim</a></label></li>
3537
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/nvim-lualine/lualine.nvim"> lualine.nvim</a></label></li>
38+
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/folke/noice.nvim"> noice.nvim</a></label></li>
3639
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/hrsh7th/nvim-cmp"> nvim-cmp</a></label></li>
40+
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/rcarriga/nvim-notify"> nvim-notify</a></label></li>
3741
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/nvim-treesitter/nvim-treesitter"> nvim-treesitter</a></label></li>
42+
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/nvim-treesitter/nvim-treesitter-context"> nvim-treesitter-context</a></label></li>
3843
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/HiPhish/rainbow-delimiters.nvim"> rainbow-delimiters.nvim</a></label></li>
3944
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/nvim-telescope/telescope.nvim"> telescope.nvim</a></label></li>
4045
<li><input type="checkbox" checked disabled><label for=""><a href="https://github.com/folke/which-key.nvim"> which-key.nvim</a></label></li>

doc/cyberdream.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FEATURES *cyberdream-features*
2929

3030
Supported Plugins ~
3131

32-
alpha-nvim gitsigns.nvim heirline-components.nvim lazy.nvim leap.nvim lualine.nvim nvim-cmp nvim-treesitter rainbow-delimiters.nvim telescope.nvim which-key.nvim
32+
alpha-nvim dashboard-nvim gitsigns.nvim heirline-components.nvim indent-blankline.nvim lazy.nvim leap.nvim lualine.nvim noice.nvim nvim-cmp nvim-notify nvim-treesitter nvim-treesitter-context rainbow-delimiters.nvim telescope.nvim which-key.nvim
3333

3434

3535
INSTALLATION *cyberdream-installation*

0 commit comments

Comments
 (0)