name: Lint on: push: branches: [ $default-branch ] pull_request: types: [ opened, reopened, synchronize ] jobs: build: runs-on: ubuntu-latest steps: - name: Install dependencies run: | sudo apt update sudo apt install -y clang-format-15 sudo apt install -y \ libevent-dev \ libssl-dev \ libpq-dev libmariadb-dev libsqlite3-dev \ libhiredis-dev \ libmongoc-dev \ libmicrohttpd-dev \ - uses: actions/checkout@v4 - name: configure run: ./configure - name: lint run: | if which clang-format-15 2>&1 >/dev/null then sudo cp $(which clang-format-15) $(which clang-format) fi clang-format --version make lint