check-formatting #21788
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check-formatting | |
on: | |
push: | |
paths-ignore: | |
- '_quarto.yml' | |
- 'quarto-materials/*' | |
- '**/.md' | |
- 'doc/source/conf.py' | |
# We specifically check formatting for the tiledb_version.h | |
# - 'tiledb/sm/c_api/tiledb_version.h' | |
pull_request: | |
paths-ignore: | |
- '_quarto.yml' | |
- 'quarto-materials/*' | |
- '**/.md' | |
- 'doc/source/conf.py' | |
# We specifically check formatting for the tiledb_version.h | |
# - 'tiledb/sm/c_api/tiledb_version.h' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
if: ${{ startsWith(github.ref , 'refs/tags') != true && startsWith(github.ref , 'build-') != true }} | |
timeout-minutes: 90 | |
name: Check Clang Format | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 'Print env' | |
run: | | |
echo "'uname -s' is:" | |
echo "uname: " $(uname) | |
echo "uname -m: " $(uname -m) | |
echo "uname -r:" $(uname -r) | |
echo "uname -s: " $(uname -s) | |
echo "uname -v: " $(uname -v) | |
printenv | |
shell: bash | |
- name: Check formatting (linux only)' | |
run: | | |
source $GITHUB_WORKSPACE/scripts/ci/check_formatting_linux.sh | |
shell: bash | |
if: ${{ runner.os == 'Linux' }} |