Skip to content

Commit

Permalink
ci: setup basic check format (#3)
Browse files Browse the repository at this point in the history
We can extend this for other languages, etc. in the future.

Signed-off-by: Matt Klein <[email protected]>
Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
mattklein123 authored and jpsim committed Nov 29, 2022
1 parent 2f82a32 commit 20dbc5b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions mobile/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
- run: docs/publish.sh
- store_artifacts:
path: generated/docs
format:
executor: ubuntu-build
# TODO(mattklein123): resource_class: small
steps:
- checkout
- run: git submodule update --init
- run: tools/check_format.sh

workflows:
version: 2
Expand All @@ -31,3 +38,4 @@ workflows:
filters:
tags:
only: /^v.*/
- format
2 changes: 2 additions & 0 deletions mobile/OWNERS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Envoy Mobile owners

* See [CONTRIBUTING.md](CONTRIBUTING.md) for general contribution guidelines.

This page lists all active maintainers and their areas of expertise. This can be used for
Expand Down
2 changes: 1 addition & 1 deletion mobile/envoy
Submodule envoy updated from a87a09 to 0e109c
8 changes: 8 additions & 0 deletions mobile/tools/check_format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

export BUILDIFIER_BIN="/usr/local/bin/buildifier"

envoy/tools/check_format.py --add-excluded-prefixes=./envoy/ check
envoy/tools/format_python_tools.sh check

0 comments on commit 20dbc5b

Please sign in to comment.