Skip to content

config: add French title for Fix Bear AI #893

config: add French title for Fix Bear AI

config: add French title for Fix Bear AI #893

Workflow file for this run

name: Run code linters
on:
- push
- pull_request
jobs:
lint:
name: Run code linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: .
fetch-depth: 0
- name: Install dependencies
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | sudo tee -a /etc/apt/sources.list
echo 'deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt-get install -y clang-format-12 iwyu
sudo ln -s /usr/bin/clang-format-12 /usr/local/bin/clang-format
sudo apt-get install -y make python3-pip
sudo python3 -m pip install pyjson5
- name: Check imports
run: |
git add -A
python3 tools/sort_imports
git diff --exit-code || ( echo 'Please run `make imports` and commit the changes.'; exit 1 )
- name: Check formatted code differences
run: |
make lint
git diff --exit-code || ( echo 'Please run `make lint` and commit the changes.'; exit 1 )
- name: Check autogenerated code differences
run: |
git add -A
python3 tools/generate_init
git diff --exit-code || ( echo 'Please run `make autogenerated` and commit the changes.'; exit 1 )