-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
61b2a27
commit 5f60b64
Showing
10 changed files
with
177 additions
and
61 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,59 @@ | ||
name: Bug Report | ||
description: Report a problem with cyberdream | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Please make sure cyberdream is up to date before reporting a bug! | ||
- type: textarea | ||
attributes: | ||
label: "Description" | ||
description: "What is the issue?" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: "Neovim version?" | ||
description: | | ||
Output of `nvim --version` | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: "What should happen?" | ||
description: "A clear and concise description of what you expected to happen or what you expected to see." | ||
|
||
- type: textarea | ||
attributes: | ||
label: "What happened instead?" | ||
description: "Based on the description above, what actually happened. Screenshots are helpful." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: "Your configuration" | ||
description: > | ||
Minimal configuration necessary to reproduce the issue. Include any relevant plugins and settings. | ||
render: Lua | ||
value: | | ||
{ | ||
"scottmckendry/cyberdream.nvim", | ||
lazy = false, | ||
priority = 1000, | ||
config = function() | ||
require("cyberdream").setup({ | ||
transparent = true, | ||
italic_comments = true, | ||
hide_fillchars = true, | ||
borderless_telescope = true, | ||
}) | ||
vim.cmd("colorscheme cyberdream") | ||
end, | ||
} | ||
validations: | ||
required: 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,10 @@ | ||
name: Ask a Question | ||
description: Ask a question or suggest an idea or feature | ||
labels: [question] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: "Question or Suggestion" | ||
description: "Ask a question or suggest an idea or feature" | ||
validations: | ||
required: 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,65 @@ | ||
name: CI | ||
on: | ||
push: | ||
|
||
jobs: | ||
stylua: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run Stylua | ||
uses: JohnnyMorganz/stylua-action@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
version: latest | ||
args: --color always --check . | ||
|
||
generate-extras: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Neovim | ||
uses: rhysd/action-setup-vim@v1 | ||
with: | ||
neovim: true | ||
version: stable | ||
|
||
- name: Generate Extras | ||
run: | | ||
nvim -u NONE -E -R --headless --cmd "set rtp^=." --cmd "lua require('cyberdream.extra').generate_all_extras()" --cmd qa | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "chore: generate extras" | ||
|
||
generate-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: panvimdoc | ||
uses: kdheepak/panvimdoc@main | ||
with: | ||
vimdoc: cyberdream | ||
version: "Neovim >= 0.9.0" | ||
titledatepattern: "%Y" | ||
demojify: true | ||
treesitter: true | ||
|
||
- name: Push changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "doc: auto-generate vimdoc" | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [generate-extras, generate-doc, stylua] | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
release-type: simple |
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
name: Housekeeping | ||
|
||
on: | ||
issue_comment: | ||
schedule: | ||
- cron: "0 0 * * *" # once daily | ||
|
||
jobs: | ||
update-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.RELEASE_TOKEN }} | ||
days-before-stale: -1 # never add label automatically | ||
days-before-close: 7 | ||
stale-issue-label: "waiting for op" | ||
stale-pr-label: "waiting for op" | ||
close-issue-label: "autoclosed" | ||
close-pr-label: "autoclosed" | ||
|
||
remove-waiting-label: | ||
runs-on: ubuntu-latest | ||
if: github.event.sender.login != 'scottmckendry' && github.event_name == 'issue_comment' | ||
steps: | ||
- uses: mondeja/remove-labels-gh-action@v2 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
labels: | | ||
waiting for op |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
column_width = 120 | ||
indent_type = "Spaces" | ||
indent_width = 4 | ||
quote_style = "AutoPreferDouble" |
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