Skip to content

Commit

Permalink
mobile: run mobile_core / unit_tests CI job on every commit (#25167)
Browse files Browse the repository at this point in the history
And move it to run in Docker on Linux.

Slack discussion: https://envoyproxy.slack.com/archives/G79D81J7Q/p1674681037655689

Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
jpsim authored Jan 26, 2023
1 parent 8cb9a81 commit 91b9196
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ concurrency:
jobs:
unittests:
name: unit_tests
runs-on: macos-12
runs-on: ubuntu-20.04
timeout-minutes: 120
container:
image: envoyproxy/envoy-build-ubuntu:b0ff77ae3f25b0bf595f9b8bba46b489723ab446
steps:
- uses: actions/checkout@v1
- id: should_run
name: 'Check whether to run'
run: ./mobile/tools/should_run_ci.sh
- name: 'Install dependencies'
if: steps.should_run.outputs.run_ci_job == 'true'
run: cd mobile && ./ci/mac_ci_setup.sh
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Run tests'
if: steps.should_run.outputs.run_ci_job == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile && ./bazelw test \
--action_env=LD_LIBRARY_PATH \
--test_env=ENVOY_IP_TEST_VERSIONS=v4only \
--test_output=all \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-macos") \
$([ -z $GITHUB_TOKEN ] || echo "--config=remote-ci-linux") \
--remote_header="Authorization=Bearer $GITHUB_TOKEN" \
//test/common/...

0 comments on commit 91b9196

Please sign in to comment.