Refactor ConstraintInfo into a struct containing a map from table_id to table_info and a map from action_id to action_info. #401
Workflow file for this run
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: "format" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Mount bazel cache | |
uses: actions/cache@v2 | |
with: | |
path: "~/.cache/bazel" # See https://docs.bazel.build/versions/master/output_directories.html | |
key: bazel_format | |
- name: Run format.sh | |
run: ./format.sh | |
- name: Check formatting diff | |
run: | | |
CHANGED_FILES="$(git diff-index --name-only HEAD --)" | |
if [[ -z "${CHANGED_FILES}" ]]; then | |
echo "Success: no formatting changes needed." | |
exit 0 | |
fi | |
echo "Found formatting changes in the following files:" | |
echo "${CHANGED_FILES}" | |
echo "" | |
echo "Please run format.sh to apply the changes." | |
exit 1 |