Squashed 'users/configs/system/nvim/nvim/' content from commit e088bce2
git-subtree-dir: users/configs/system/nvim/nvim git-subtree-split: e088bce2bd90c0b5c35d13a8615a55455b96294d
This commit is contained in:
13
.github/workflows/conventional_commit.yml
vendored
Normal file
13
.github/workflows/conventional_commit.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Conventional Commits
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Conventional Commits
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: webiny/action-conventional-commits@v1.1.0
|
||||
34
.github/workflows/docs.yml
vendored
Normal file
34
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Lua
|
||||
uses: leafo/gh-actions-lua@v8
|
||||
with:
|
||||
luaVersion: 5.4
|
||||
- name: Install LDoc
|
||||
uses: leafo/gh-actions-luarocks@v4
|
||||
- name: Setup dependencies
|
||||
run: luarocks install ldoc
|
||||
- name: Build Docs
|
||||
run: |
|
||||
ldoc .
|
||||
- name: Set CNAME
|
||||
run: |
|
||||
echo "api.astronvim.com" > docs/CNAME
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./docs
|
||||
13
.github/workflows/luacheck.yml
vendored
Normal file
13
.github/workflows/luacheck.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Lua Linting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: lunarmodules/luacheck@v1
|
||||
14
.github/workflows/spell.yml
vendored
Normal file
14
.github/workflows/spell.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
name: Spell Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
typos-check:
|
||||
name: Spell Check with Typos
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Actions Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Check spelling
|
||||
uses: crate-ci/typos@v1.14.5
|
||||
18
.github/workflows/style.yml
vendored
Normal file
18
.github/workflows/style.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Style Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
style:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: JohnnyMorganz/stylua-action@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
version: latest
|
||||
# CLI arguments
|
||||
args: --check .
|
||||
35
.github/workflows/updater.yml
vendored
Normal file
35
.github/workflows/updater.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Updater Comment
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
paths: ["**.lua"]
|
||||
types: ["opened"]
|
||||
|
||||
jobs:
|
||||
updater-comment:
|
||||
name: Comment updater settings
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
const src = context.payload.pull_request.head
|
||||
const user = src.user.login
|
||||
const tab = " "
|
||||
let settings = tab + "updater = {\n" + tab + tab + `channel = "nightly",\n`
|
||||
if (src.ref != "nightly") {
|
||||
settings += tab + tab + `branch = "${src.ref}",\n`
|
||||
}
|
||||
if (user != "AstroNvim") {
|
||||
settings += tab + tab + `remote = "${user}",\n`
|
||||
settings += tab + tab + `remotes = {\n`
|
||||
settings += tab + tab + tab + `["${user}"] = "${user}/${src.repo.name}",\n`
|
||||
settings += tab + tab + `},\n`
|
||||
}
|
||||
settings += tab + "},"
|
||||
github.rest.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: "Use the following `updater` settings in your `user/init.lua` file, restart, and run `:AstroUpdate` to test this pull request:\n```\n" + settings + "\n```",
|
||||
})
|
||||
Reference in New Issue
Block a user