Skip to content

Commit

Permalink
tc-build: Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
Makes sure that shell scripts are clean through shellcheck and Python
scripts are run through YAPF. This ensures that the code base stays high
quality and consistent.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
  • Loading branch information
nathanchance committed Apr 2, 2020
1 parent 5517f6d commit 41cc3c3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Run a couple of linters on code in repo
# * shellcheck for shell scripts
# * YAPF for Python scripts
name: Lint checks
on: [push, pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: shellcheck
uses: bewuethr/shellcheck-action@v1
yapf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: yapf
uses: AlexanderMelde/yapf-action@master

0 comments on commit 41cc3c3

Please sign in to comment.