2022-07-16 19:25:10 -04:00
|
|
|
name: Lint
|
2020-10-09 21:08:16 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-06-06 20:05:35 -04:00
|
|
|
- master
|
2020-10-09 21:08:16 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-02-09 19:50:07 -05:00
|
|
|
merge_group: {}
|
2020-10-09 21:08:16 -04:00
|
|
|
|
|
|
|
jobs:
|
2023-06-25 16:17:18 -04:00
|
|
|
formatting:
|
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
|
|
|
|
2022-10-29 15:22:57 -04:00
|
|
|
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
# sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main'
|
|
|
|
# sudo apt install clang-format-15
|
|
|
|
# --clang-format-executable $(which clang-format-15)
|
2020-10-09 21:08:16 -04:00
|
|
|
- name: Get Package Dependencies
|
2022-04-12 18:48:27 -04:00
|
|
|
run: |
|
2022-10-29 15:22:57 -04:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install clang-format
|
2022-04-12 18:48:27 -04:00
|
|
|
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
|
2023-06-25 16:17:18 -04:00
|
|
|
other:
|
|
|
|
name: 📝 Other Checks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v3
|
2023-01-28 14:19:04 -05:00
|
|
|
|
|
|
|
- name: Check for Unresolved Conflicts
|
|
|
|
run: python ./scripts/gsrc/check-for-conflicts.py
|
2023-04-08 16:19:37 -04:00
|
|
|
|
|
|
|
- name: Check for Incorrect Asserts
|
|
|
|
run: python ./scripts/ci/check-for-asserts.py
|
2023-06-25 15:13:32 -04:00
|
|
|
|
|
|
|
- name: Check for Invalid Translation Characters
|
|
|
|
run: python ./scripts/ci/lint-characters.py
|