Skip to content

Commit

Permalink
Add checks for merge conflicts/spelling/trailing whitespace with Actions
Browse files Browse the repository at this point in the history
Lint trailing whitespace
  • Loading branch information
jbampton committed Apr 11, 2021
1 parent 8ea408a commit 8215e88
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 24 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on: [pull_request]

jobs:
merge-conflict:
name: Merge Conflict
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check merge conflict
run: grep "^<<<<<<< HEAD" $(git ls-files | xargs) && exit 1 || true
misspell:
name: Check Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: wget -O - -q https://git.io/misspell | sh -s -- -b .
- name: Misspell
run: git ls-files --empty-directory | xargs ./misspell -error
trailing-whitespace:
name: Trailing Whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for trailing whitespace
run: "! git grep -EIn $'[ \t]+$'"
2 changes: 1 addition & 1 deletion mruby-audite.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Portable MP3 Player based on libmp123 and portaudio
author: Matthias Georgi
website: https://github.com/georgi/mruby-audite
protocol: git
repository: https://github.com/georgi/mruby-audite.git
repository: https://github.com/georgi/mruby-audite.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-aws-s3.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Client library for Amazon's (AWS) S3 REST API
author: iij
website: https://github.com/iij/mruby-aws-s3
protocol: git
repository: https://github.com/iij/mruby-aws-s3.git
repository: https://github.com/iij/mruby-aws-s3.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-bin-mirb-hostbased.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-bin-mirb-hostbased
description: Hostbased mirb for serial connection
description: Hostbased mirb for serial connection
author: kyab
website: https://github.com/kyab/mruby-bin-mirb-hostbased
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-channel.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-channel
description: named FIFO queue with multithreading
description: named FIFO queue with multithreading
author: bggd
website: https://github.com/bggd/mruby-channel
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-curl.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: CURL HTTP Client
author: mattn
website: https://github.com/mattn/mruby-curl
protocol: git
repository: https://github.com/mattn/mruby-curl.git
repository: https://github.com/mattn/mruby-curl.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-dll.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: DLL Windows Support
author: mattn
website: https://github.com/mattn/mruby-dll
protocol: git
repository: https://github.com/mattn/mruby-dll.git
repository: https://github.com/mattn/mruby-dll.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-eject.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Eject CD-ROM
author: mattn
website: https://github.com/mattn/mruby-eject
protocol: git
repository: https://github.com/mattn/mruby-eject.git
repository: https://github.com/mattn/mruby-eject.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-env.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: ENV class implementation
author: iij
website: https://github.com/iij/mruby-env
protocol: git
repository: https://github.com/iij/mruby-env.git
repository: https://github.com/iij/mruby-env.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-fltk3.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: FLTK3 GUI binding.
author: mattn
website: https://github.com/mattn/mruby-fltk3
protocol: git
repository: https://github.com/mattn/mruby-fltk3.git
repository: https://github.com/mattn/mruby-fltk3.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-fluent-logger.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-fluent-logger
description: A structured logger for Fluentd.
description: A structured logger for Fluentd.
author: Kentaro Yoshida
website: https://github.com/y-ken/fluent-logger-mruby
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-http.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: HTTP Parser
author: mattn
website: https://github.com/mattn/mruby-http
protocol: git
repository: https://github.com/mattn/mruby-http.git
repository: https://github.com/mattn/mruby-http.git
license: Apache-2
2 changes: 1 addition & 1 deletion mruby-inotify.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Inotify bindings
author: FlavourSys Technology GmbH
website: https://github.com/FlavourSys/mruby-inotify
protocol: git
repository: https://github.com/FlavourSys/mruby-inotify.git
repository: https://github.com/FlavourSys/mruby-inotify.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-json.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: JavaScript Object Notation
author: mattn
website: https://github.com/mattn/mruby-json
protocol: git
repository: https://github.com/mattn/mruby-json.git
repository: https://github.com/mattn/mruby-json.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-kmp.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-kmp
description: KMP searching algorithm in mruby
description: KMP searching algorithm in mruby
author: santazhang
website: https://github.com/santazhang/mruby-kmp
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-mecab.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Japanese morphological analyzer
author: mattn
website: https://github.com/mattn/mruby-mecab
protocol: git
repository: https://github.com/mattn/mruby-mecab.git
repository: https://github.com/mattn/mruby-mecab.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-msagent.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Microsoft Agent
author: mattn
website: https://github.com/mattn/mruby-msagent
protocol: git
repository: https://github.com/mattn/mruby-msagent.git
repository: https://github.com/mattn/mruby-msagent.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-pjson.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: JSON Parser written in pure mruby
author: mattn
website: https://github.com/mattn/mruby-pjson
protocol: git
repository: https://github.com/mattn/mruby-pjson.git
repository: https://github.com/mattn/mruby-pjson.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-polarssl.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-polarssl
description: SSL and cryptography functionality from PolarSSL in your mruby programs
description: SSL and cryptography functionality from PolarSSL in your mruby programs
author: luisbebop
website: https://github.com/luisbebop/mruby-polarssl
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-qml-spawn.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-qml-spawn
description: Optimized ruby flavored qml->pure ruby pseudo-compiler
description: Optimized ruby flavored qml->pure ruby pseudo-compiler
author: fundamental
website: https://github.com/mruby-zest/mruby-qml-spawn
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-require.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: require implementation
author: mattn
website: https://github.com/mattn/mruby-require
protocol: git
repository: https://github.com/mattn/mruby-require.git
repository: https://github.com/mattn/mruby-require.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-sinatic.gem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mruby-sinatic
description: Sinatra like Web Framework
description: Sinatra like Web Framework
author: mattn
website: https://github.com/mattn/mruby-sinatic
protocol: git
Expand Down
2 changes: 1 addition & 1 deletion mruby-updategems.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Rake task to update GEMs
author: mattn
website: https://github.com/mattn/mruby-updategems
protocol: git
repository: https://github.com/mattn/mruby-updategems.git
repository: https://github.com/mattn/mruby-updategems.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-uv.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: libuv interface
author: mattn
website: https://github.com/mattn/mruby-uv
protocol: git
repository: https://github.com/mattn/mruby-uv.git
repository: https://github.com/mattn/mruby-uv.git
license: MIT
2 changes: 1 addition & 1 deletion mruby-winapp.gem
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description: Create non-console application for windows
author: mattn
website: https://github.com/mattn/mruby-winapp
protocol: git
repository: https://github.com/mattn/mruby-winapp.git
repository: https://github.com/mattn/mruby-winapp.git
license: MIT

0 comments on commit 8215e88

Please sign in to comment.