Skip to content

Commit 0ee9ddc

Browse files
committed
ci: update
1 parent 026e420 commit 0ee9ddc

File tree

12 files changed

+72
-126
lines changed

12 files changed

+72
-126
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ body:
7575
-- install plugins
7676
local plugins = {
7777
"folke/tokyonight.nvim",
78-
"folke/trouble.nvim",
78+
{ "folke/trouble.nvim", opts = {} },
7979
-- add any other plugins here
8080
}
8181
require("lazy").setup(plugins, {

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

+9-78
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,15 @@
11
name: CI
2+
23
on:
34
push:
5+
branches: [main, master]
46
pull_request:
57

68
jobs:
7-
tests:
8-
strategy:
9-
matrix:
10-
# os: [ubuntu-latest, windows-latest]
11-
os: [ubuntu-latest]
12-
runs-on: ${{ matrix.os }}
13-
steps:
14-
- uses: actions/checkout@v3
15-
- name: Install Neovim
16-
shell: bash
17-
run: |
18-
mkdir -p /tmp/nvim
19-
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
20-
cd /tmp/nvim
21-
chmod a+x ./nvim.appimage
22-
./nvim.appimage --appimage-extract
23-
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
24-
- name: Run Tests
25-
run: |
26-
nvim --version
27-
[ ! -d tests ] && exit 0
28-
tests/run
29-
docs:
30-
runs-on: ubuntu-latest
31-
needs: tests
32-
steps:
33-
- uses: actions/checkout@v3
34-
- name: Install Neovim
35-
shell: bash
36-
run: |
37-
mkdir -p /tmp/nvim
38-
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
39-
cd /tmp/nvim
40-
chmod a+x ./nvim.appimage
41-
./nvim.appimage --appimage-extract
42-
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
43-
- name: Generate docs
44-
run: |
45-
nvim --version
46-
nvim -u tests/minit.lua -l lua/trouble/docs.lua
47-
- name: panvimdoc
48-
uses: kdheepak/panvimdoc@main
49-
with:
50-
vimdoc: trouble.nvim
51-
version: "Neovim >= 0.8.0"
52-
demojify: true
53-
treesitter: true
54-
- name: Push changes
55-
uses: stefanzweifel/git-auto-commit-action@v4
56-
with:
57-
commit_message: "chore(build): auto-generate vimdoc"
58-
commit_user_name: "github-actions[bot]"
59-
commit_user_email: "github-actions[bot]@users.noreply.github.com"
60-
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
61-
release:
62-
name: release
63-
if: ${{ github.ref == 'refs/heads/main' }}
64-
needs:
65-
- docs
66-
- tests
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: google-github-actions/release-please-action@v3
70-
id: release
71-
with:
72-
release-type: simple
73-
package-name: trouble.nvim
74-
- uses: actions/checkout@v3
75-
- name: tag stable versions
76-
if: ${{ steps.release.outputs.release_created }}
77-
run: |
78-
git config user.name github-actions[bot]
79-
git config user.email github-actions[bot]@users.noreply.github.com
80-
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
81-
git tag -d stable || true
82-
git push origin :stable || true
83-
git tag -a stable -m "Last Stable Release"
84-
git push origin stable
9+
ci:
10+
uses: folke/github/.github/workflows/ci.yml@main
11+
secrets: inherit
12+
with:
13+
plugin: trouble.nvim
14+
repo: folke/trouble.nvim
15+
tests: true

.github/workflows/labeler.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "PR Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
uses: folke/github/.github/workflows/labeler.yml@main
8+
secrets: inherit

.github/workflows/pr.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR Title
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
- ready_for_review
11+
12+
permissions:
13+
pull-requests: read
14+
15+
jobs:
16+
pr-title:
17+
uses: folke/github/.github/workflows/pr.yml@main
18+
secrets: inherit

.github/workflows/stale.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Stale Issues & PRs
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
ci:
9+
uses: folke/github/.github/workflows/stale.yml@main
10+
secrets: inherit

.gitignore

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
tt.*
1+
*.log
2+
.repro
23
.tests
3-
doc/tags
4-
.docs
4+
build
55
debug
6-
.repro
6+
doc/tags
77
foo.*
8-
*.log
9-
data
10-
.DS_Store
8+
tt.*

scripts/docs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/env bash
2+
3+
nvim -u tests/minit.lua -l lua/trouble/docs.lua

scripts/test

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/env bash
2+
3+
nvim -l tests/minit.lua --busted tests -o utfTerminal "$@"

selene.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
std = "vim"
1+
std="vim"
22

33
[lints]
4-
mixed_table = "allow"
4+
mixed_table="allow"

tests/run

-3
This file was deleted.

vim.toml

+7-35
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,14 @@ any = true
88
[jit]
99
any = true
1010

11-
[[describe.args]]
12-
type = "string"
13-
[[describe.args]]
14-
type = "function"
15-
16-
[[it.args]]
17-
type = "string"
18-
[[it.args]]
19-
type = "function"
20-
21-
[[before_each.args]]
22-
type = "function"
23-
[[after_each.args]]
24-
type = "function"
25-
26-
[assert.is_not]
11+
[assert]
2712
any = true
2813

29-
[[assert.equals.args]]
30-
type = "any"
31-
[[assert.equals.args]]
32-
type = "any"
33-
[[assert.equals.args]]
34-
type = "any"
35-
required = false
36-
37-
[[assert.same.args]]
38-
type = "any"
39-
[[assert.same.args]]
40-
type = "any"
41-
42-
[[assert.truthy.args]]
43-
type = "any"
14+
[describe]
15+
any = true
4416

45-
[[assert.spy.args]]
46-
type = "any"
17+
[it]
18+
any = true
4719

48-
[[assert.stub.args]]
49-
type = "any"
20+
[before_each.args]
21+
any = true

0 commit comments

Comments
 (0)