mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 16:45:40 +01:00
CI: Add highlight_test and badges
This commit is contained in:
parent
c5edb55b20
commit
92c5ada3c7
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
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!"
|
@ -1,6 +1,7 @@
|
|||||||
# Improved Nano Syntax Highlighting Files
|
# Improved Nano Syntax Highlighting Files
|
||||||
|
|
||||||
[![shellcheck](https://github.com/davidhcefx/nanorc/actions/workflows/shellcheck.yml/badge.svg?branch=master)](https://github.com/davidhcefx/nanorc/actions/workflows/shellcheck.yml)
|
[![shellcheck](https://github.com/scopatz/nanorc/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/scopatz/nanorc/actions/workflows/shellcheck.yml)
|
||||||
|
[![test](https://github.com/scopatz/nanorc/actions/workflows/test.yml/badge.svg)](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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user