Skip to content
Snippets Groups Projects
Unverified Commit 04b87dc1 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #2100 from freifunk-gluon/lint-action

actions: add linter actions for lua and shell script
parents 78f4d0a3 7ca9d331
No related branches found
Tags v2019.1.1
No related merge requests found
......@@ -7,6 +7,10 @@ insert_final_newline = true
indent_style = tab
charset = utf-8
[*.yml]
indent_style = space
indent_size = 2
[*.py]
indent_style = space
indent_size = 4
name: Lint
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lua:
name: Lua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: sudo apt install lua-check
- name: Install example site
run: ln -s ./docs/site-example ./site
- name: Lint Lua code
run: make lint-lua
sh:
name: Shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: sudo apt install shellcheck
- name: Install example site
run: ln -s ./docs/site-example ./site
- name: Lint shell code
run: make lint-sh
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