Skip to content

Commit 7632eb2

Browse files
committed
ci: add GitHub Actions test workflow
Run StyLua lint and plenary tests on push to main and pull requests. Tests against Neovim 0.11.3, 0.11.4, and nightly on Ubuntu.
1 parent 881551d commit 7632eb2

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CI: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: JohnnyMorganz/stylua-action@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
version: latest
21+
args: --check lua/ spec/
22+
23+
tests:
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
os:
28+
- ubuntu-latest
29+
version:
30+
- v0.11.3
31+
- v0.11.4
32+
- nightly
33+
runs-on: ${{ matrix.os }}
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install Neovim
37+
uses: rhysd/action-setup-vim@v1
38+
id: neovim
39+
with:
40+
neovim: true
41+
version: ${{ matrix.version }}
42+
- name: Run tests
43+
run: make test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# telescope-orgmode.nvim
22

3+
[![tests](https://github.com/nvim-orgmode/telescope-orgmode.nvim/actions/workflows/tests.yml/badge.svg)](https://github.com/nvim-orgmode/telescope-orgmode.nvim/actions/workflows/tests.yml)
4+
35
Fuzzy search, refile, and link insertion for [orgmode](https://github.com/nvim-orgmode/orgmode) with [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) or [snacks.nvim](https://github.com/folke/snacks.nvim) picker.
46

57
## Features

spec/integration/adapters/smoke_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local helpers = require('spec.e2e.adapters.helpers')
55

66
local has_snacks = pcall(require, 'snacks')
77

8-
describe('Adapter Smoke Tests', function()
8+
describe('[Integration: Adapter Smoke Tests]', function()
99
after_each(function()
1010
helpers.close_all_pickers()
1111
helpers.close_all_buffers()

0 commit comments

Comments
 (0)