2022-07-16 19:25:10 -04:00
|
|
|
name: Lint
|
2020-10-09 21:08:16 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-16 19:25:10 -04:00
|
|
|
- '*'
|
2020-10-09 21:08:16 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2022-07-16 19:25:10 -04:00
|
|
|
name: 📝 Formatting
|
2020-10-09 21:08:16 -04:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2022-07-16 19:25:10 -04:00
|
|
|
uses: actions/checkout@v3
|
2020-10-09 21:08:16 -04:00
|
|
|
|
|
|
|
- name: Get Package Dependencies
|
2022-04-12 18:48:27 -04:00
|
|
|
run: |
|
|
|
|
sudo apt install clang-format clang-tidy
|
|
|
|
clang-format -version
|
2020-10-09 21:08:16 -04:00
|
|
|
|
|
|
|
- name: Check Clang-Formatting
|
|
|
|
run: |
|
|
|
|
chmod +x ./third-party/run-clang-format/run-clang-format.py
|
2022-07-23 10:30:23 -04:00
|
|
|
./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test tools lsp --color always
|