Skip to content

Commit

Permalink
Add checks workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remisalmon committed Sep 8, 2023
1 parent 2939163 commit a6f8468
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pull request checks

on:
pull_request:
branches:
- main

jobs:
check_nanorc_files:
name: Check nanorc files
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Run nano
run: |
echo "include \"$(pwd)/*.nanorc\"" > ~/.nanorc
echo "test" | nano 2> log.txt || grep "^Error" log.txt && exit 1 || exit 0
# - name: Parse nanorc files
# run: |
# # see https://www.nano-editor.org/dist/latest/nano.html#Nanorc-Files
# grep -v -E "^(#|syntax|header|magic|formatter|linter|comment|tabgives|color|icolor|include|extendsyntax|$)" *.nanorc && exit 1 || exit 0

0 comments on commit a6f8468

Please sign in to comment.