2020-08-16 11:12:28 +00:00
|
|
|
name: Lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2022-05-08 01:00:16 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-08-16 11:12:28 +00:00
|
|
|
jobs:
|
|
|
|
lua:
|
|
|
|
name: Lua
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-01 13:46:08 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-08-16 11:12:28 +00:00
|
|
|
- name: Install Dependencies
|
2022-01-25 21:14:28 +00:00
|
|
|
run: sudo apt-get -y update && sudo apt-get -y install lua-check
|
2020-08-16 11:12:28 +00:00
|
|
|
- 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:
|
2022-04-01 13:46:08 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-08-16 11:12:28 +00:00
|
|
|
- name: Install Dependencies
|
2022-01-25 21:14:28 +00:00
|
|
|
run: sudo apt-get -y update && sudo apt-get -y install shellcheck
|
2020-08-16 11:12:28 +00:00
|
|
|
- name: Install example site
|
|
|
|
run: ln -s ./docs/site-example ./site
|
|
|
|
- name: Lint shell code
|
|
|
|
run: make lint-sh
|