mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
ci: update
This commit is contained in:
parent
f64bbd29fb
commit
6eb8cacd0f
10 changed files with 52 additions and 141 deletions
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
|
@ -1,11 +1,6 @@
|
||||||
# To get started with Dependabot version updates, you'll need to specify which
|
|
||||||
# package ecosystems to update and where the package manifests are located.
|
|
||||||
# Please see the documentation for all configuration options:
|
|
||||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "github-actions" # See documentation for possible values
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/" # Location of package manifests
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
|
80
.github/workflows/ci.yml
vendored
80
.github/workflows/ci.yml
vendored
|
@ -1,78 +1,14 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [main, master]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stylua:
|
ci:
|
||||||
name: Stylua Formatting
|
uses: folke/github/.github/workflows/ci.yml@main
|
||||||
runs-on: ubuntu-latest
|
secrets: inherit
|
||||||
steps:
|
with:
|
||||||
- uses: actions/checkout@v4
|
plugin: LazyVim
|
||||||
- uses: JohnnyMorganz/stylua-action@v4
|
repo: LazyVim/LazyVim
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
version: latest
|
|
||||||
args: --check .
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Neovim
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p /tmp/nvim
|
|
||||||
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
|
|
||||||
cd /tmp/nvim
|
|
||||||
chmod a+x ./nvim.appimage
|
|
||||||
./nvim.appimage --appimage-extract
|
|
||||||
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
|
|
||||||
- name: Run Tests
|
|
||||||
run: |
|
|
||||||
nvim --version
|
|
||||||
[ ! -d tests ] && exit 0
|
|
||||||
./tests/run
|
|
||||||
docs:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: tests
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: panvimdoc
|
|
||||||
uses: kdheepak/panvimdoc@main
|
|
||||||
with:
|
|
||||||
vimdoc: LazyVim
|
|
||||||
version: "Neovim >= 0.9.0"
|
|
||||||
demojify: true
|
|
||||||
treesitter: true
|
|
||||||
- name: Push changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: "chore(build): auto-generate vimdoc"
|
|
||||||
commit_user_name: "github-actions[bot]"
|
|
||||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
|
||||||
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
|
|
||||||
release:
|
|
||||||
name: release
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'LazyVim' }}
|
|
||||||
needs:
|
|
||||||
- docs
|
|
||||||
- tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: googleapis/release-please-action@v4
|
|
||||||
id: release
|
|
||||||
with:
|
|
||||||
config-file: .github/release-please-config.json
|
|
||||||
manifest-file: .github/.release-please-manifest.json
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: tag stable versions
|
|
||||||
if: ${{ steps.release.outputs.release_created }}
|
|
||||||
run: |
|
|
||||||
git config user.name github-actions[bot]
|
|
||||||
git config user.email github-actions[bot]@users.noreply.github.com
|
|
||||||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
|
|
||||||
git tag -d stable || true
|
|
||||||
git push origin :stable || true
|
|
||||||
git tag -a stable -m "Last Stable Release"
|
|
||||||
git push origin stable
|
|
||||||
|
|
10
.github/workflows/labeler.yml
vendored
10
.github/workflows/labeler.yml
vendored
|
@ -1,12 +1,8 @@
|
||||||
name: "Pull Request Labeler"
|
name: "PR Labeler"
|
||||||
on:
|
on:
|
||||||
- pull_request_target
|
- pull_request_target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labeler:
|
labeler:
|
||||||
permissions:
|
uses: folke/github/.github/workflows/labeler.yml@main
|
||||||
contents: read
|
secrets: inherit
|
||||||
pull-requests: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/labeler@v5
|
|
||||||
|
|
35
.github/workflows/pr.yml
vendored
35
.github/workflows/pr.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: "Lint PR"
|
name: PR Title
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
@ -6,36 +6,13 @@ on:
|
||||||
- opened
|
- opened
|
||||||
- edited
|
- edited
|
||||||
- synchronize
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
pr-title:
|
||||||
name: Validate PR title
|
uses: folke/github/.github/workflows/pr.yml@main
|
||||||
runs-on: ubuntu-latest
|
secrets: inherit
|
||||||
steps:
|
|
||||||
- uses: amannn/action-semantic-pull-request@v5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
requireScope: true
|
|
||||||
subjectPattern: ^(?![A-Z]).+$
|
|
||||||
scopes: |
|
|
||||||
.+
|
|
||||||
types: |
|
|
||||||
build
|
|
||||||
chore
|
|
||||||
ci
|
|
||||||
docs
|
|
||||||
feat
|
|
||||||
fix
|
|
||||||
merge
|
|
||||||
perf
|
|
||||||
refactor
|
|
||||||
revert
|
|
||||||
style
|
|
||||||
test
|
|
||||||
wip
|
|
||||||
ignoreLabels: |
|
|
||||||
autorelease: pending
|
|
||||||
|
|
25
.github/workflows/stale.yml
vendored
25
.github/workflows/stale.yml
vendored
|
@ -1,27 +1,10 @@
|
||||||
name: Close stale issues and PRs
|
name: Stale Issues & PRs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "30 1 * * *"
|
- cron: "30 1 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
uses: folke/github/.github/workflows/stale.yml@main
|
||||||
steps:
|
secrets: inherit
|
||||||
- uses: actions/stale@v9
|
|
||||||
with:
|
|
||||||
operations-per-run: 300
|
|
||||||
# default stale time
|
|
||||||
days-before-stale: 30
|
|
||||||
days-before-close: 7
|
|
||||||
# never stale pull requests
|
|
||||||
# days-before-pr-stale: -1
|
|
||||||
days-before-pr-close: -1
|
|
||||||
# exclude issues with certain labels
|
|
||||||
exempt-issue-labels: pinned,wip,security,notice
|
|
||||||
# never stale issues attached to a milestone
|
|
||||||
# exempt-all-milestones: true
|
|
||||||
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days."
|
|
||||||
stale-pr-message: "This PR is stale because it has been open 60 days with no activity."
|
|
||||||
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity."
|
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,8 +1,7 @@
|
||||||
tt.*
|
tt.*
|
||||||
|
foo.*
|
||||||
.tests
|
.tests
|
||||||
doc/tags
|
doc/tags
|
||||||
debug
|
debug
|
||||||
.repro
|
.repro
|
||||||
foo.*
|
|
||||||
*.log
|
*.log
|
||||||
data
|
|
||||||
|
|
3
scripts/test
Executable file
3
scripts/test
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
nvim -l tests/minit.lua --busted tests -o utfTerminal "$@"
|
4
selene.toml
Normal file
4
selene.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
std="vim"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
mixed_table="allow"
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
nvim -l tests/minit.lua --busted tests -o utfTerminal
|
|
21
vim.toml
Normal file
21
vim.toml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[selene]
|
||||||
|
base = "lua51"
|
||||||
|
name = "vim"
|
||||||
|
|
||||||
|
[vim]
|
||||||
|
any = true
|
||||||
|
|
||||||
|
[jit]
|
||||||
|
any = true
|
||||||
|
|
||||||
|
[assert]
|
||||||
|
any = true
|
||||||
|
|
||||||
|
[describe]
|
||||||
|
any = true
|
||||||
|
|
||||||
|
[it]
|
||||||
|
any = true
|
||||||
|
|
||||||
|
[before_each.args]
|
||||||
|
any = true
|
Loading…
Add table
Add a link
Reference in a new issue