Skip to content

Commit

Permalink
Switch linting to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimsel committed Jul 7, 2023
1 parent af61418 commit f1c494a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 30 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint code

on:
- push
- pull_request

jobs:
mdl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actionshub/markdownlint@main
name: Lint markdown files

vimlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: vimlint
uses: tsuyoshicho/action-vimlint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target: autoload plugin
fail_on_error: true
reporter: github-check
4 changes: 4 additions & 0 deletions .mdl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all

exclude_tag :line_length
exclude_rule 'MD026' # trailing punctuation in header
3 changes: 1 addition & 2 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rules "~MD013",
"~MD026"
style '.mdl.rb'
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Stay at my cursor, boy!

[![Project status][badge-status]][vimscripts]
[![Current release][badge-release]][releases]
[![Open issues][badge-issues]][issues]
[![License][badge-license]][license]
[![Build Status][badge-build]][travis]

# Stay at my cursor, boy!
[![Lint status][badge-lint]][job-lint]

*vim-stay* adds automated view session creation and restoration whenever editing a buffer, across Vim sessions and window life cycles. It also alleviates Vim's tendency to lose view state when cycling through buffers (via `argdo`, `bufdo` et al.). It is smart about which buffers should be persisted and which should not, making the procedure painless and invisible.

Expand All @@ -28,12 +28,12 @@ Keeping editing session state should be a given in an editor; unluckily, Vim's s

*vim-stay* is licensed under [the terms of the MIT license according to the accompanying license file][license].

[badge-status]: http://img.shields.io/badge/status-maintained-green.svg?style=flat-square
[badge-release]: http://img.shields.io/github/release/zhimsel/vim-stay.svg?style=flat-square
[badge-issues]: http://img.shields.io/github/issues/zhimsel/vim-stay.svg?style=flat-square
[badge-license]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[badge-build]: https://travis-ci.org/zhimsel/vim-stay.svg?branch=master
[travis]: https://travis-ci.org/zhimsel/vim-stay
[badge-status]: https://img.shields.io/badge/status-maintained-green.svg?style=flat-square
[badge-release]: https://img.shields.io/github/release/zhimsel/vim-stay.svg?style=flat-square
[badge-issues]: https://img.shields.io/github/issues/zhimsel/vim-stay.svg?style=flat-square
[badge-license]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[badge-lint]: https://img.shields.io/github/actions/workflow/status/zhimsel/vim-stay/lint.yaml?label=linting
[job-lint]: https://github.com/zhimsel/vim-stay/actions/workflows/lint.yaml
[chao-plugin]: http://www.vim.org/scripts/script.php?script_id=4021
[doc]: doc/vim-stay.txt
[heuristics]: https://github.com/zhimsel/vim-stay/issues/2
Expand Down

0 comments on commit f1c494a

Please sign in to comment.