Github Actions enhancements

This commit is contained in:
Tyler Wilding
2020-10-09 21:08:16 -04:00
parent adc09d7c79
commit a5972e5111
5 changed files with 244 additions and 84 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Linter
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Linting & Formatting
runs-on: ubuntu-20.04
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Package Dependencies
run: sudo apt install clang-format clang-tidy
- name: Check Clang-Formatting
run: |
chmod +x ./third-party/run-clang-format/run-clang-format.py
./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test --color always