aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/FUNDING.yml13
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml4
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.yaml32
-rw-r--r--.github/ISSUE_TEMPLATE/general_issue.yaml75
-rw-r--r--.github/workflows/autogenerate.yml42
-rw-r--r--.github/workflows/check-generated-code-state.yml29
-rw-r--r--.github/workflows/stylua.yml20
-rw-r--r--.github/workflows/tests.yml19
8 files changed, 234 insertions, 0 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..2924f6e
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,13 @@
+# These are supported funding model platforms
+
+github: [williamboman] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..70db94b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,4 @@
+contact_links:
+ - name: Ask a question about mason.nvim or get support
+ url: https://github.com/williamboman/mason.nvim/discussions/new?category=q-a
+ about: Ask a question or request support for using mason.nvim
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml
new file mode 100644
index 0000000..de4fe3a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yaml
@@ -0,0 +1,32 @@
+name: Feature request
+description: Suggest an idea for this project
+labels:
+ - enhancement
+
+body:
+ - type: markdown
+ attributes:
+ value: |
+ 👋! This is not an issue template for questions! If you have questions, please refer to https://github.com/williamboman/mason.nvim/discussions/categories/q-a :)
+
+ Before filing an issue, make sure that you meet the minimum requirements mentioned in the README.
+
+ - type: textarea
+ attributes:
+ label: Is your feature request related to a problem? Please describe.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Describe the solution you'd like
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Describe potential alternatives you've considered
+
+ - type: textarea
+ attributes:
+ label: Additional context
diff --git a/.github/ISSUE_TEMPLATE/general_issue.yaml b/.github/ISSUE_TEMPLATE/general_issue.yaml
new file mode 100644
index 0000000..c1d122b
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/general_issue.yaml
@@ -0,0 +1,75 @@
+name: Issue
+description: Report an issue with mason-lspconfig.nvim
+
+body:
+ - type: markdown
+ attributes:
+ value: |
+ 👋! This is not an issue template for questions! If you have questions, please refer to https://github.com/williamboman/mason.nvim/discussions/categories/q-a :)
+
+ Before filing an issue, make sure that you meet the minimum requirements mentioned in the README.
+
+ - type: textarea
+ attributes:
+ label: Problem description
+ description: A clear and concise description of what the issue is and why you think it's an issue with mason.nvim.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: "Neovim version (>= 0.7)"
+ description: "Output of `nvim --version`"
+ placeholder: |
+ NVIM v0.7.0-dev
+ Build type: Release
+ LuaJIT 2.1.0-beta3
+ validations:
+ required: true
+
+ - type: input
+ attributes:
+ label: "Operating system/version"
+ description: "On Linux and Mac systems: `$ uname -a`"
+ validations:
+ required: true
+
+ - type: checkboxes
+ attributes:
+ label: I've recently downloaded the latest plugin version of mason.nvim & mason-lspconfig.nvim
+ options:
+ - label: "Yes"
+
+ - type: input
+ attributes:
+ label: Affected packages
+ description: If this issue is specific to one or more packages, list them here. If not, write 'all'.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Actual behavior
+ description: A short description of what's happening.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Expected behavior
+ description: A short description of the behavior you expected.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Healthcheck output
+ placeholder: ":checkhealth mason"
+ render: shell
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Screenshots
+ description: If applicable, add screenshots to help explain your problem
diff --git a/.github/workflows/autogenerate.yml b/.github/workflows/autogenerate.yml
new file mode 100644
index 0000000..b148513
--- /dev/null
+++ b/.github/workflows/autogenerate.yml
@@ -0,0 +1,42 @@
+name: Autogenerate code
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: "0 10 * * *"
+
+jobs:
+ autogenerate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ version: v0.7.0
+
+ - name: make generate
+ run: make generate
+
+ - name: Create Pull Request
+ id: cpr
+ uses: peter-evans/create-pull-request@v4
+ with:
+ token: ${{ secrets.PAT }}
+ author: "William Botman <william+bot@redwill.se>"
+ committer: "William Botman <william+bot@redwill.se>"
+ add-paths: lua/mason-lspconfig
+ commit-message: "chore: update generated code"
+ branch: chore/generate
+ branch-suffix: short-commit-hash
+ delete-branch: true
+ labels: automerge
+ title: "chore: update generated code"
+
+ - name: Enable Pull Request Automerge
+ if: steps.cpr.outputs.pull-request-operation == 'created'
+ uses: peter-evans/enable-pull-request-automerge@v2
+ with:
+ token: ${{ secrets.PAT }}
+ pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
+ merge-method: squash
diff --git a/.github/workflows/check-generated-code-state.yml b/.github/workflows/check-generated-code-state.yml
new file mode 100644
index 0000000..99abfe2
--- /dev/null
+++ b/.github/workflows/check-generated-code-state.yml
@@ -0,0 +1,29 @@
+name: Check generated code state
+
+on:
+ push:
+ branches:
+ - "main"
+ pull_request:
+
+jobs:
+ check-generated-code-state:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ version: v0.7.0
+
+ - name: make generate
+ run: make generate
+
+ - name: Ensure there are no diffs
+ run: |
+ git update-index -q --refresh
+ git diff
+ git diff-index --exit-code --quiet HEAD -- || {
+ echo '::error::Generated code is not up to date, run "make generate".';
+ exit 1;
+ }
diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml
new file mode 100644
index 0000000..e28130b
--- /dev/null
+++ b/.github/workflows/stylua.yml
@@ -0,0 +1,20 @@
+name: Stylua check
+
+on:
+ push:
+ branches:
+ - "main"
+ pull_request:
+
+jobs:
+ stylua:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Run Stylua check
+ uses: JohnnyMorganz/stylua-action@1.0.0
+ with:
+ # token is needed because the action allegedly downloads binary from github releases
+ token: ${{ secrets.GITHUB_TOKEN }}
+ # CLI arguments
+ args: --check .
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..68c2e21
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,19 @@
+name: Tests
+
+on:
+ push:
+ branches:
+ - "main"
+ pull_request:
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ version: v0.7.0
+ - name: Run tests
+ run: make test