mirror of
https://github.com/scopatz/nanorc
synced 2025-04-08 14:50:05 +02:00
Merge 92c5ada3c72522b8a1f669a7ca944013815e5deb into 1aa64a86cf4c750e4d4788ef1a19d7a71ab641dd
This commit is contained in:
commit
5927188706
31
.github/workflows/shellcheck.yml
vendored
Normal file
31
.github/workflows/shellcheck.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: shellcheck
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@1.1.0
|
||||||
|
#with:
|
||||||
|
# A space separated list of additional filename to check
|
||||||
|
#additional_files: # optional, default is
|
||||||
|
# Paths to ignore when running ShellCheck
|
||||||
|
#ignore: # optional, default is
|
||||||
|
# Minimum severity of errors to consider. Options: [error, warning, info, style]
|
||||||
|
#severity: # optional, default is
|
||||||
|
# Run shellcheck on _all_ files at once, instead of one at a time
|
||||||
|
#check_together: # optional, default is
|
||||||
|
# Directory to be searched for files. Defaults to .
|
||||||
|
#scandir: # optional, default is .
|
||||||
|
# Set to true to skip using problem-matcher
|
||||||
|
#disable_matcher: # optional, default is false
|
||||||
|
# Output format (checkstyle, diff, gcc, json, json1, quiet, tty)
|
||||||
|
#format: # optional, default is gcc
|
40
.github/workflows/test.yml
vendored
Normal file
40
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
highlight_test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: sudo apt-get install -y autoconf automake autopoint gcc gettext git groff make pkg-config texinfo libncurses5-dev
|
||||||
|
|
||||||
|
- name: Clone and configure GNU nano
|
||||||
|
run: |
|
||||||
|
git clone --depth 100 git://git.savannah.gnu.org/nano.git
|
||||||
|
cd nano
|
||||||
|
./autogen.sh
|
||||||
|
./configure --prefix=/usr
|
||||||
|
cd -
|
||||||
|
|
||||||
|
- name: Build and install nano
|
||||||
|
run: |
|
||||||
|
cd nano
|
||||||
|
make -j
|
||||||
|
sudo make install
|
||||||
|
cd -
|
||||||
|
nano --version
|
||||||
|
|
||||||
|
- name: Test highlighting files
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.nano/
|
||||||
|
cp -al *.nanorc ~/.nano/
|
||||||
|
TERM=xterm timeout 1s nano --rcfile ./nanorc >/dev/null 2>error.txt || true
|
||||||
|
grep -v -e "Received SIGHUP or SIGTERM" -e "Too many errors from stdin" error.txt && false
|
||||||
|
echo "All seems good!"
|
12
.travis.yml
12
.travis.yml
@ -1,12 +0,0 @@
|
|||||||
sudo: required
|
|
||||||
dist: trusty
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' | sudo tee -a /etc/apt/sources.list
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install -y shellcheck
|
|
||||||
|
|
||||||
git:
|
|
||||||
depth: 3
|
|
||||||
|
|
||||||
script: ./shellcheck.sh
|
|
@ -1,5 +1,8 @@
|
|||||||
# Improved Nano Syntax Highlighting Files
|
# Improved Nano Syntax Highlighting Files
|
||||||
|
|
||||||
|
[](https://github.com/scopatz/nanorc/actions/workflows/shellcheck.yml)
|
||||||
|
[](https://github.com/scopatz/nanorc/actions/workflows/test.yml)
|
||||||
|
|
||||||
This repository holds ``{lang}.nanorc`` files that have improved definitions of syntax highlighting for various languages.
|
This repository holds ``{lang}.nanorc`` files that have improved definitions of syntax highlighting for various languages.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh -ev
|
|
||||||
# Shellcheck the script
|
|
||||||
|
|
||||||
shellcheck install.sh
|
|
Loading…
x
Reference in New Issue
Block a user