Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ on:
push:
branches:
- main
paths:
- 'mobile/**'
- '.github/workflows/**'
pull_request:
paths:
- 'mobile/**'
- '.github/workflows/**'

jobs:
kotlintestsmac:
Expand All @@ -24,7 +18,7 @@ jobs:
- id: check_context
name: 'Check whether to run'
run: |
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe common/ -e java/ -e kotlin/ -e bazel/ -e ^\.bazelrc$ -e ^envoy$ -e ^WORKSPACE$ -e ^.github/workflows/android_tests.yml$ ; then
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe mobile/common/ -e mobile/java/ -e mobile/kotlin/ -e mobile/bazel/ -e mobile/.bazelrc$ -e mobile/WORKSPACE$ -e .github/workflows/android_tests.yml$ ; then
echo "Tests will run."
echo "run_tests=true" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -61,7 +55,7 @@ jobs:
- id: check_context
name: 'Check whether to run'
run: |
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe common/ -e java/ -e kotlin/ -e bazel/ -e ^\.bazelrc$ -e ^envoy$ -e ^WORKSPACE$ -e ^.github/workflows/android_tests.yml$ ; then
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe mobile/common/ -e mobile/java/ -e mobile/kotlin/ -e mobile/bazel/ -e mobile/.bazelrc$ -e mobile/WORKSPACE$ -e .github/workflows/android_tests.yml$ ; then
echo "Tests will run."
echo "run_tests=true" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -108,7 +102,7 @@ jobs:
- id: check_context
name: 'Check whether to run'
run: |
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe common/ -e java/ -e kotlin/ -e bazel/ -e ^\.bazelrc$ -e ^envoy$ -e ^WORKSPACE$ -e ^.github/workflows/android_tests.yml$ ; then
if git rev-parse --abbrev-ref HEAD | grep -q ^main$ || git diff --name-only origin/main | grep -qe mobile/common/ -e mobile/java/ -e mobile/kotlin/ -e mobile/bazel/ -e mobile/.bazelrc$ -e mobile/WORKSPACE$ -e .github/workflows/android_tests.yml$ ; then
echo "Tests will run."
echo "run_tests=true" >> $GITHUB_OUTPUT
else
Expand Down