Skip to content

Commit

Permalink
Pre-submit test validation action workflow (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennycd authored Sep 7, 2022
1 parent 6d992e8 commit ddd9907
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 504 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre_submit_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pre submit tests and validations on main development branch
on:
pull_request:
branches:
- 'main'
repository_dispatch:
types: [pre-submit-check]
jobs:
Pre-Submit-Check-Main-Branch:
runs-on: macos-latest
steps:
- name: Repo Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: SPM sample app build test
run: scripts/build_test_spm_samples.sh
3 changes: 2 additions & 1 deletion scripts/build_test_spm_samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ SCHEME=gRPCSample
DESTINATION='name=iPhone 11'

# custom build flags
# TODO: re-enable warning as error after grpc native warning fix (https://github.com/grpc/grpc-ios/issues/83)
BUILD_FLAGS="
GCC_TREAT_WARNINGS_AS_ERRORS=YES
GCC_TREAT_WARNINGS_AS_ERRORS=NO
"

# build via xcodebuild command line
Expand Down
Loading

0 comments on commit ddd9907

Please sign in to comment.