Skip to content

Commit

Permalink
ci: add integration workflow to check if files end in a newline chara…
Browse files Browse the repository at this point in the history
…cter
  • Loading branch information
DaleSeo committed Aug 17, 2024
1 parent c705737 commit 83e47bd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 🔄 Integration

on:
pull_request:

jobs:
linelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fernandrone/linelint@0.0.6
18 changes: 18 additions & 0 deletions .linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 'true' will fix files
autofix: false

# list of paths to ignore, uses gitignore syntaxes (executes before any rule)
ignore:
- "*.md"

rules:
# checks if file ends in a newline character
end-of-file:
# set to true to enable this rule
enable: true

# set to true to disable autofix (if enabled globally)
disable-autofix: false

# if true also checks if file ends in a single newline character
single-new-line: false

0 comments on commit 83e47bd

Please sign in to comment.