forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
124 lines (117 loc) · 3.3 KB
/
mobile-android_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: android_tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
uses: ./.github/workflows/_env.yml
permissions:
contents: read
statuses: write
kotlintestsmac:
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
# revert to //test/kotlin/... once fixed
# https://github.com/envoyproxy/envoy-mobile/issues/1932
name: kotlin_tests_mac
runs-on: macos-12
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: 'Java setup'
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
with:
java-version: '8'
java-package: jdk
architecture: x64
distribution: zulu
- name: 'Install dependencies'
run: |
cd mobile
./ci/mac_ci_setup.sh
- name: 'Run Kotlin library tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw test \
--build_tests_only \
--config=mobile-remote-ci-macos \
--define=signal_trace=disabled \
//test/kotlin/io/...
javatestsmac:
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: java_tests_mac
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: 'Java setup'
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
with:
java-version: '8'
java-package: jdk
architecture: x64
distribution: zulu
- name: 'Install dependencies'
run: |
cd mobile
./ci/mac_ci_setup.sh
- name: 'Run Java library tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw test \
--build_tests_only \
--config test-android \
--define envoy_mobile_listener=enabled \
--config=mobile-remote-ci-macos \
--define=signal_trace=disabled \
--define=system-helper=android \
//test/java/...
kotlintestslinux:
if: ${{ needs.env.outputs.mobile_android_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
# Only kotlin tests are executed since with linux:
# https://github.com/envoyproxy/envoy-mobile/issues/1418.
name: kotlin_tests_linux
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 90
container:
image: ${{ needs.env.outputs.build_image_ubuntu_mobile }}
env:
CC: /opt/llvm/bin/clang
CXX: /opt/llvm/bin/clang++
steps:
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory /__w/envoy/envoy
- name: 'Run Kotlin library integration tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw test \
--build_tests_only \
--config test-android \
--config=mobile-remote-ci \
--define=signal_trace=disabled \
//test/kotlin/...