Implement linting checks

develop
lethosor 2020-04-10 23:46:19 -04:00
parent 385aa0877d
commit daad14ee66
1 changed files with 27 additions and 2 deletions

@ -3,7 +3,7 @@ name: Build and test
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
main: build:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Install dependencies - name: Install dependencies
@ -36,7 +36,32 @@ jobs:
- name: Build docs - name: Build docs
run: | run: |
sphinx-build -qW -j3 . docs/html sphinx-build -qW -j3 . docs/html
- uses: actions/upload-artifact@master - name: Upload docs
uses: actions/upload-artifact@master
with: with:
name: docs name: docs
path: docs/html path: docs/html
lint:
runs-on: ubuntu-18.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
lua5.3 \
ruby
- name: Check whitespace
run: |
python travis/lint.py
- name: Check Authors.rst
run: |
python travis/authors-rst.py
- name: Check for missing documentation
run: |
python travis/script-docs.py
- name: Check Lua syntax
run: |
python travis/script-syntax.py --ext=lua --cmd="luac5.3 -p"
- name: Check Ruby syntax
run: |
python travis/script-syntax.py --ext=rb --cmd="ruby -c"