Skip to content
Snippets Groups Projects
Commit c93eb80b authored by Martin Weinelt's avatar Martin Weinelt Committed by Jan-Niklas Burfeind
Browse files

actions: add editorconfig checker


Adds `lint-editorconfig` make target.

Co-authored-by: default avatarJan-Niklas Burfeind <git@aiyionpri.me>
version bump to 2.6.0
parent 0e5a5d31
No related branches found
No related tags found
No related merge requests found
...@@ -30,3 +30,25 @@ jobs: ...@@ -30,3 +30,25 @@ jobs:
run: ln -s ./docs/site-example ./site run: ln -s ./docs/site-example ./site
- name: Lint shell code - name: Lint shell code
run: make lint-sh run: make lint-sh
editorconfig:
name: Editorconfig
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: sudo apt install curl tar
- name: Install editorconfig-checker
env:
VERSION: 2.6.0
OS: linux
ARCH: amd64
run: |
curl -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz
tar xzf ec-$OS-$ARCH.tar.gz
sudo mv ./bin/ec-$OS-$ARCH /usr/bin/editorconfig-checker
sudo chmod +x /usr/bin/editorconfig-checker
- name: Install example site
run: ln -s ./docs/site-example ./site
- name: Lint editorconfig
run: make lint-editorconfig
...@@ -151,7 +151,10 @@ list-targets: FORCE ...@@ -151,7 +151,10 @@ list-targets: FORCE
echo "$$target" echo "$$target"
done done
lint: lint-lua lint-sh lint: lint-editorconfig lint-lua lint-sh
lint-editorconfig: FORCE
@scripts/lint-editorconfig.sh
lint-lua: FORCE lint-lua: FORCE
@scripts/lint-lua.sh @scripts/lint-lua.sh
......
#!/bin/sh
set -e
editorconfig-checker .github contrib docs package scripts targets tests ./*.* .luacheckrc .editorconfig
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment