jak-project/.github/workflows/linting.yaml

44 lines
1.2 KiB
YAML
Raw Normal View History

name: Lint
2020-10-09 21:08:16 -04:00
on:
push:
branches:
- master
2020-10-09 21:08:16 -04:00
pull_request:
branches:
- master
merge_group: {}
2020-10-09 21:08:16 -04:00
jobs:
lint:
name: 📝 Formatting
2020-10-09 21:08:16 -04:00
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v3
2020-10-09 21:08:16 -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
run: |
sudo apt update
sudo apt install clang-format
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
./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test tools lsp --color always
- name: Check for Unresolved Conflicts
run: python ./scripts/gsrc/check-for-conflicts.py
- name: Check for Incorrect Asserts
run: python ./scripts/ci/check-for-asserts.py
- name: Check for Invalid Translation Characters
run: python ./scripts/ci/lint-characters.py