fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
76daee30
cleanup
1name : Formatting 2 3on : 4push : 5branches : 6- main 7pull_request : 8types : 9- opened 10- synchronize 11 12jobs : 13code-format-checks : 14runs-on : ubuntu-latest 15steps : 16- uses : actions/checkout@v2 17- uses : DoozyX/clang-format-lint-action@v0.14 18with : 19source : '.' 20extensions : 'h,c,cc,proto' 21clangFormatVersion : 14 22- uses : actionsx/prettier@v2 23with : 24args : --config "${{ github.workspace }}/.prettierrc.toml" --write "**/*.{js,ts}" 25# Prettier has no diff view so we must make one ourselves 26# https://github.com/prettier/prettier/issues/6885 27- run : | 28 git diff 29 if [[ -n "$(git status --porcelain)" ]]; then 30 exit 1 31 fi